public class GzipParameters
extends java.lang.Object
| Constructor and Description |
|---|
GzipParameters() |
| Modifier and Type | Method and Description |
|---|---|
int |
getBufferSize()
Gets size of the buffer used to retrieve compressed data.
|
java.lang.String |
getComment() |
int |
getCompressionLevel() |
java.lang.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(java.lang.String comment) |
void |
setCompressionLevel(int compressionLevel)
Sets the compression level.
|
void |
setFilename(java.lang.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 int getCompressionLevel()
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 long getModificationTime()
public void setModificationTime(long modificationTime)
modificationTime - the modification time, in millisecondspublic java.lang.String getFilename()
public void setFilename(java.lang.String fileName)
fileName - the name of the file without the directory pathpublic java.lang.String getComment()
public void setComment(java.lang.String comment)
public int getOperatingSystem()
public void setOperatingSystem(int operatingSystem)
operatingSystem - the code of the operating systempublic int getBufferSize()
setBufferSize(int)public void setBufferSize(int bufferSize)
Deflater and write to underlying OutputStream.bufferSize - the bufferSize to set. Must be a positive value.Copyright © 2010 - 2023 Adobe. All Rights Reserved