public static class Compressor.Zip extends Compressor
Compressor.Jar, Compressor.Tar, Compressor.Zip| Modifier | Constructor and Description |
|---|---|
|
Zip(java.io.File file) |
|
Zip(java.io.OutputStream stream) |
protected |
Zip(java.util.zip.ZipOutputStream stream) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Compressor.Zip |
withLevel(int compressionLevel) |
protected void |
writeDirectoryEntry(java.lang.String name,
long timestamp) |
protected void |
writeFileEntry(java.lang.String name,
java.io.InputStream source,
long length,
long timestamp) |
addDirectory, addDirectory, addDirectory, addDirectory, addFile, addFile, addFile, addFile, addFile, filterpublic Zip(java.io.File file)
throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionpublic Zip(java.io.OutputStream stream)
protected Zip(java.util.zip.ZipOutputStream stream)
public Compressor.Zip withLevel(int compressionLevel)
protected void writeDirectoryEntry(java.lang.String name,
long timestamp)
throws java.io.IOException
writeDirectoryEntry in class Compressorjava.io.IOExceptionprotected void writeFileEntry(java.lang.String name,
java.io.InputStream source,
long length,
long timestamp)
throws java.io.IOException
writeFileEntry in class Compressorjava.io.IOExceptionpublic void close()
throws java.io.IOException
java.io.IOException