@ThreadSafe @DefaultAnnotation(value=edu.umd.cs.findbugs.annotations.NonNull.class) class DefaultZipOutputStreamParameters extends DefaultZipCharsetParameters implements ZipOutputStreamParameters
ZipOutputStreamParameters.| Constructor and Description |
|---|
DefaultZipOutputStreamParameters(Charset charset) |
| Modifier and Type | Method and Description |
|---|---|
int |
getLevel()
Returns the compression level for entries.
|
int |
getMethod()
Returns the default compression method for entries.
|
int |
getOverheadSize()
Returns the number of entries which can be additionally accomodated by
the internal hash map without resizing it.
|
getCharsetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCharsetDefaultZipOutputStreamParameters(Charset charset)
public int getLevel()
ZipEntry.DEFLATED or ZipEntry.BZIP2.
Legal values are Deflater.DEFAULT_COMPRESSION or range from
Deflater#BEST_SPEED to Deflater#BEST_COMPRESSION.
The implementation in the class DefaultZipOutputStreamParameters
returns Deflater#DEFAULT_COMPRESSION.
getLevel in interface ZipOutputStreamParameterspublic int getMethod()
ZipEntry does not specify a
compression method.
Legal values are ZipEntry.STORED, ZipEntry.DEFLATED
and ZipEntry.BZIP2.
The implementation in the class DefaultZipOutputStreamParameters
returns ZipEntry#DEFLATED.
getMethod in interface ZipOutputStreamParametersZipEntry.getMethod()public int getOverheadSize()
The implementation in the class DefaultZipOutputStreamParameters
returns ZipOutputStream#OVERHEAD_SIZE.
getOverheadSize in interface ZipOutputStreamParametersCopyright © 2004-2011 Schlichtherle IT Services. All Rights Reserved.