public class GzipParameters extends Object
GzipCompressorInputStream,
GzipCompressorOutputStream| Constructor and Description |
|---|
GzipParameters() |
| Modifier and Type | Method and Description |
|---|---|
int |
getBufferSize()
Gets size of the buffer used to retrieve compressed data.
|
String |
getComment() |
int |
getCompressionLevel() |
int |
getDeflateStrategy()
Gets the deflater strategy.
|
String |
getFilename() |
long |
getModificationTime() |
int |
getOperatingSystem() |
void |
setBufferSize(int bufferSize)
Sets size of the buffer used to retrieve compressed data from
Deflater and write to underlying OutputStream. |
void |
setComment(String comment) |
void |
setCompressionLevel(int compressionLevel)
Sets the compression level.
|
void |
setDeflateStrategy(int deflateStrategy)
Sets the deflater strategy.
|
void |
setFilename(String fileName)
Sets the name of the compressed file.
|
void |
setModificationTime(long modificationTime)
Sets the modification time of the compressed file.
|
void |
setOperatingSystem(int operatingSystem)
Sets the operating system on which the compression took place.
|
public GzipParameters()
public int getBufferSize()
setBufferSize(int)public String getComment()
public int getCompressionLevel()
public int getDeflateStrategy()
Deflater.DEFAULT_STRATEGY by default.setDeflateStrategy(int),
Deflater.setStrategy(int)public String getFilename()
public long getModificationTime()
public int getOperatingSystem()
public void setBufferSize(int bufferSize)
Deflater and write to underlying OutputStream.bufferSize - the bufferSize to set. Must be a positive value.public void setComment(String comment)
public void setCompressionLevel(int compressionLevel)
compressionLevel - the compression level (between 0 and 9)Deflater.NO_COMPRESSION,
Deflater.BEST_SPEED,
Deflater.DEFAULT_COMPRESSION,
Deflater.BEST_COMPRESSIONpublic void setDeflateStrategy(int deflateStrategy)
deflateStrategy - the new compression strategyDeflater.setStrategy(int)public void setFilename(String fileName)
fileName - the name of the file without the directory pathpublic void setModificationTime(long modificationTime)
modificationTime - the modification time, in millisecondspublic void setOperatingSystem(int operatingSystem)
operatingSystem - the code of the operating systemCopyright © 2002–2022 The Apache Software Foundation. All rights reserved.