net.lingala.zip4j.model
Class ZipParameters
java.lang.Object
net.lingala.zip4j.model.ZipParameters
- All Implemented Interfaces:
- Cloneable
public class ZipParameters
- extends Object
- implements Cloneable
ZipParameters
public ZipParameters()
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:
clone
in class Object
- 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)
Copyright © 2012. All Rights Reserved.