public class ZipParameters
extends java.lang.Object
implements java.lang.Cloneable
构造器和说明 |
---|
ZipParameters() |
限定符和类型 | 方法和说明 |
---|---|
java.lang.Object |
clone() |
int |
getAesKeyStrength() |
int |
getCompressionLevel() |
int |
getCompressionMethod() |
java.lang.String |
getDefaultFolderPath() |
int |
getEncryptionMethod() |
java.lang.String |
getFileNameInZip() |
char[] |
getPassword() |
java.lang.String |
getRootFolderInZip() |
int |
getSourceFileCRC() |
java.util.TimeZone |
getTimeZone() |
boolean |
isEncryptFiles() |
boolean |
isIncludeRootFolder() |
boolean |
isReadHiddenFiles() |
boolean |
isSourceExternalStream() |
void |
setAesKeyStrength(int aesKeyStrength) |
void |
setCompressionLevel(int compressionLevel) |
void |
setCompressionMethod(int compressionMethod) |
void |
setDefaultFolderPath(java.lang.String defaultFolderPath) |
void |
setEncryptFiles(boolean encryptFiles) |
void |
setEncryptionMethod(int encryptionMethod) |
void |
setFileNameInZip(java.lang.String fileNameInZip) |
void |
setIncludeRootFolder(boolean includeRootFolder) |
void |
setPassword(char[] password) |
void |
setPassword(java.lang.String password)
Sets the password for the zip file or the file being added
Note: For security reasons, usage of this method is discouraged. |
void |
setReadHiddenFiles(boolean readHiddenFiles) |
void |
setRootFolderInZip(java.lang.String rootFolderInZip) |
void |
setSourceExternalStream(boolean isSourceExternalStream) |
void |
setSourceFileCRC(int sourceFileCRC) |
void |
setTimeZone(java.util.TimeZone timeZone) |
public int getCompressionMethod()
public void setCompressionMethod(int compressionMethod)
public boolean isEncryptFiles()
public void setEncryptFiles(boolean encryptFiles)
public int getEncryptionMethod()
public void setEncryptionMethod(int encryptionMethod)
public int getCompressionLevel()
public void setCompressionLevel(int compressionLevel)
public boolean isReadHiddenFiles()
public void setReadHiddenFiles(boolean readHiddenFiles)
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
在类中 java.lang.Object
java.lang.CloneNotSupportedException
public char[] getPassword()
public void setPassword(java.lang.String password)
password
- public void setPassword(char[] password)
public int getAesKeyStrength()
public void setAesKeyStrength(int aesKeyStrength)
public boolean isIncludeRootFolder()
public void setIncludeRootFolder(boolean includeRootFolder)
public java.lang.String getRootFolderInZip()
public void setRootFolderInZip(java.lang.String rootFolderInZip)
public java.util.TimeZone getTimeZone()
public void setTimeZone(java.util.TimeZone timeZone)
public int getSourceFileCRC()
public void setSourceFileCRC(int sourceFileCRC)
public java.lang.String getDefaultFolderPath()
public void setDefaultFolderPath(java.lang.String defaultFolderPath)
public java.lang.String getFileNameInZip()
public void setFileNameInZip(java.lang.String fileNameInZip)
public boolean isSourceExternalStream()
public void setSourceExternalStream(boolean isSourceExternalStream)