public class GzipParameters extends Object
| Constructor and Description |
|---|
GzipParameters() |
| Modifier and Type | Method and Description |
|---|---|
String |
getComment() |
int |
getCompressionLevel() |
String |
getFilename() |
long |
getModificationTime() |
int |
getOperatingSystem() |
void |
setComment(String comment) |
void |
setCompressionLevel(int compressionLevel)
Sets the compression level.
|
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 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 String getFilename()
public void setFilename(String fileName)
fileName - the name of the file without the directory pathpublic String getComment()
public void setComment(String comment)
public int getOperatingSystem()
public void setOperatingSystem(int operatingSystem)
operatingSystem - the code of the operating systemCopyright © 2020 The Apache Software Foundation. All rights reserved.