Package net.lingala.zip4j.model
Class ZipParameters
- java.lang.Object
-
- net.lingala.zip4j.model.ZipParameters
-
-
Constructor Summary
Constructors Constructor Description ZipParameters()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()intgetAesKeyStrength()intgetCompressionLevel()intgetCompressionMethod()StringgetDefaultFolderPath()intgetEncryptionMethod()StringgetFileNameInZip()char[]getPassword()StringgetRootFolderInZip()intgetSourceFileCRC()TimeZonegetTimeZone()booleanisEncryptFiles()booleanisIncludeRootFolder()booleanisReadHiddenFiles()booleanisSourceExternalStream()voidsetAesKeyStrength(int aesKeyStrength)voidsetCompressionLevel(int compressionLevel)voidsetCompressionMethod(int compressionMethod)voidsetDefaultFolderPath(String defaultFolderPath)voidsetEncryptFiles(boolean encryptFiles)voidsetEncryptionMethod(int encryptionMethod)voidsetFileNameInZip(String fileNameInZip)voidsetIncludeRootFolder(boolean includeRootFolder)voidsetPassword(char[] password)voidsetPassword(String password)Sets the password for the zip file or the file being added
Note: For security reasons, usage of this method is discouraged.voidsetReadHiddenFiles(boolean readHiddenFiles)voidsetRootFolderInZip(String rootFolderInZip)voidsetSourceExternalStream(boolean isSourceExternalStream)voidsetSourceFileCRC(int sourceFileCRC)voidsetTimeZone(TimeZone timeZone)
-
-
-
Method Detail
-
getCompressionMethod
public int getCompressionMethod()
-
setCompressionMethod
public void setCompressionMethod(int compressionMethod)
-
isEncryptFiles
public boolean isEncryptFiles()
-
setEncryptFiles
public void setEncryptFiles(boolean encryptFiles)
-
getEncryptionMethod
public int getEncryptionMethod()
-
setEncryptionMethod
public void setEncryptionMethod(int encryptionMethod)
-
getCompressionLevel
public int getCompressionLevel()
-
setCompressionLevel
public void setCompressionLevel(int compressionLevel)
-
isReadHiddenFiles
public boolean isReadHiddenFiles()
-
setReadHiddenFiles
public void setReadHiddenFiles(boolean readHiddenFiles)
-
clone
public Object clone() throws CloneNotSupportedException
- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-
getPassword
public char[] getPassword()
-
setPassword
public void setPassword(String password)
Sets the password for the zip file or the file being added
Note: For security reasons, usage of this method is discouraged. Use setPassword(char[]) instead. As strings are immutable, they cannot be wiped out from memory explicitly after usage. Therefore, usage of Strings to store passwords is discouraged. More info here: http://docs.oracle.com/javase/1.5.0/docs/guide/security/jce/JCERefGuide.html#PBEEx- Parameters:
password-
-
setPassword
public void setPassword(char[] password)
-
getAesKeyStrength
public int getAesKeyStrength()
-
setAesKeyStrength
public void setAesKeyStrength(int aesKeyStrength)
-
isIncludeRootFolder
public boolean isIncludeRootFolder()
-
setIncludeRootFolder
public void setIncludeRootFolder(boolean includeRootFolder)
-
getRootFolderInZip
public String getRootFolderInZip()
-
setRootFolderInZip
public void setRootFolderInZip(String rootFolderInZip)
-
getTimeZone
public TimeZone getTimeZone()
-
setTimeZone
public void setTimeZone(TimeZone timeZone)
-
getSourceFileCRC
public int getSourceFileCRC()
-
setSourceFileCRC
public void setSourceFileCRC(int sourceFileCRC)
-
getDefaultFolderPath
public String getDefaultFolderPath()
-
setDefaultFolderPath
public void setDefaultFolderPath(String defaultFolderPath)
-
getFileNameInZip
public String getFileNameInZip()
-
setFileNameInZip
public void setFileNameInZip(String fileNameInZip)
-
isSourceExternalStream
public boolean isSourceExternalStream()
-
setSourceExternalStream
public void setSourceExternalStream(boolean isSourceExternalStream)
-
-