| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.sevenzipjbinding.impl.OutArchiveImpl<IOutItem7z>
net.sf.sevenzipjbinding.impl.OutArchive7zImpl
public class OutArchive7zImpl
7z specific archive create and update class.
| Constructor Summary | |
|---|---|
| OutArchive7zImpl() | |
| Method Summary | |
|---|---|
|  void | setHeaderEncryption(boolean enabled)Enable/disable header encryption for password protected archives. | 
|  void | setLevel(int compressionLevel)Set compression level: 0 - Copy mode (no compression) 1 - Fastest 3 - Fast 5 - Normal 7 - Maximum 9 - Ultra Note, that the meaning of compression level can differ through out different archive formats. | 
|  void | setSolid(boolean solid)Set solid archive option. | 
|  void | setSolidExtension(boolean solidExtension)Put all files with the same extension following each other in the order of packing in a solid block. | 
|  void | setSolidFiles(int countOfFilesPerBlock)Put specified count of files in a single solid block. | 
|  void | setSolidSize(long countOfBytesPerBlock)Put specified count of bytes in a single solid block. | 
|  void | setThreadCount(int threadCount)Set number of threads to use. | 
| Methods inherited from class net.sf.sevenzipjbinding.impl.OutArchiveImpl | 
|---|
| close, createArchive, getArchiveFormat, getConnectedInArchive, getTracePrintStream, isTrace, setTrace, setTracePrintStream, updateItems | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Methods inherited from interface net.sf.sevenzipjbinding.IOutCreateArchive | 
|---|
| createArchive, getArchiveFormat | 
| Methods inherited from interface net.sf.sevenzipjbinding.IOutArchiveBase | 
|---|
| getTracePrintStream, isTrace, setTrace, setTracePrintStream | 
| Methods inherited from interface java.io.Closeable | 
|---|
| close | 
| Methods inherited from interface net.sf.sevenzipjbinding.IOutUpdateArchive | 
|---|
| getArchiveFormat, getConnectedInArchive, updateItems | 
| Methods inherited from interface net.sf.sevenzipjbinding.IOutArchiveBase | 
|---|
| getTracePrintStream, isTrace, setTrace, setTracePrintStream | 
| Constructor Detail | 
|---|
public OutArchive7zImpl()
| Method Detail | 
|---|
public void setLevel(int compressionLevel)
IOutFeatureSetLevel
setLevel in interface IOutFeatureSetLevelcompressionLevel - compression level to set. -1 - use default
public void setHeaderEncryption(boolean enabled)
                         throws SevenZipException
IOutFeatureSetEncryptHeaderICryptoGetTextPassword in your callback class to turn on the encryption.
setHeaderEncryption in interface IOutFeatureSetEncryptHeaderenabled - true enable header encryption, otherwise false
SevenZipException - in error case. If this method ends with an exception, the current operation will be reported to 7-Zip
             as failed. There are no guarantee, that there are no further call back methods will get called. The
             first and last thrown exceptions will be saved and thrown later on from the originally called method
             such as ISevenZipInArchive.extract() or SevenZip.openInArchive(). Up to
             four exceptions depending on the situation can be saved for further analysis. See
             SevenZipException and SevenZipException.printStackTraceExtended() for details.public void setSolid(boolean solid)
setSolid in interface IOutFeatureSetSolidsolid - true - use default configuration, false - deactivate solid block modepublic void setSolidFiles(int countOfFilesPerBlock)
IOutFeatureSetSolid.setSolid(boolean).
setSolidFiles in interface IOutFeatureSetSolidcountOfFilesPerBlock - count of files per solid block. -1 - use default configurationIOutFeatureSetSolid.setSolid(boolean)public void setSolidSize(long countOfBytesPerBlock)
IOutFeatureSetSolid.setSolid(boolean).
setSolidSize in interface IOutFeatureSetSolidcountOfBytesPerBlock - count of bytes per solid block. -1 - use default configuration.IOutFeatureSetSolid.setSolid(boolean)public void setSolidExtension(boolean solidExtension)
IOutFeatureSetSolid.setSolid(boolean).
setSolidExtension in interface IOutFeatureSetSolidsolidExtension - true - activate this feature, false - use default configurationIOutFeatureSetSolid.setSolid(boolean)public void setThreadCount(int threadCount)
setThreadCount in interface IOutFeatureSetMultithreadingthreadCount - number of threads to use,0 - match count of threads to the count of the available processors,-1 - use default value| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||