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, filter
public Zip(java.io.File file) throws java.io.FileNotFoundException
java.io.FileNotFoundException
public 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 Compressor
java.io.IOException
protected void writeFileEntry(java.lang.String name, java.io.InputStream source, long length, long timestamp) throws java.io.IOException
writeFileEntry
in class Compressor
java.io.IOException
public void close() throws java.io.IOException
java.io.IOException