public class ZipUtils
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
| static java.lang.String | versionVersion, history and license. | 
| Constructor and Description | 
|---|
| ZipUtils() | 
| Modifier and Type | Method and Description | 
|---|---|
| static boolean | closeZipEntry(java.io.OutputStream out) | 
| static java.lang.String | copyFileFromZip(java.io.File fileZip,
               java.io.File fileDst,
               java.lang.String pathInZip)Read the requested file from zip . | 
| static void | copyFileFromZip(java.lang.String sfileZip,
               java.lang.String sFileDst,
               java.lang.String pathInZip)Read the requested file from zip . | 
| static java.io.OutputStream | openToZipOneFile(java.io.File fileZip,
                java.lang.String sPathInZip)This creates a new Zip with only the one entry, removes all existing content. | 
| static java.nio.file.FileSystem | openZip(java.io.File fileZip) | 
| static java.io.BufferedWriter | openZipEntryToWrite(java.io.File fileZip,
                   java.lang.String sPathInZip,
                   java.nio.charset.Charset encoding) | 
| static void | replaceFile(java.lang.String sfileZip,
           java.lang.String snewFile,
           java.lang.String pathInZip)Replaces the given file in zip with the given, or copies the given. | 
public static final java.lang.String version
public static java.io.OutputStream openToZipOneFile(java.io.File fileZip,
                                                    java.lang.String sPathInZip)
                                             throws java.io.IOException
fileZip - sPathInZip - java.io.IOExceptionpublic static java.nio.file.FileSystem openZip(java.io.File fileZip)
                                        throws java.io.IOException
java.io.IOExceptionpublic static void copyFileFromZip(java.lang.String sfileZip,
                                   java.lang.String sFileDst,
                                   java.lang.String pathInZip)
                            throws java.io.IOException
sfileZip - (absolute) path to the zip filesFileDst - (absolute) path to the file to write from zip contentpathInZip - path in zip from root, not starting with "/"java.io.IOExceptionpublic static java.lang.String copyFileFromZip(java.io.File fileZip,
                                               java.io.File fileDst,
                                               java.lang.String pathInZip)
fileZip - zip filefileDst - file to write from zip contentpathInZip - path in zip from root, not starting with "/"public static void replaceFile(java.lang.String sfileZip,
                               java.lang.String snewFile,
                               java.lang.String pathInZip)
                        throws java.io.IOException
sfileZip - (absolute) path to the zip filesnewFile - (absolute) path to the file which replacespathInZip - path in zip from root, not starting with "/"java.io.IOExceptionpublic static java.io.BufferedWriter openZipEntryToWrite(java.io.File fileZip,
                                                         java.lang.String sPathInZip,
                                                         java.nio.charset.Charset encoding)
                                                  throws java.io.IOException
java.io.IOExceptionpublic static boolean closeZipEntry(java.io.OutputStream out)
                             throws java.io.IOException
java.io.IOException