net.sf.sevenzipjbinding
Interface IOutFeatureSetSolid

All Known Subinterfaces:
IOutCreateArchive7z, IOutUpdateArchive7z
All Known Implementing Classes:
OutArchive7zImpl

public interface IOutFeatureSetSolid

Feature interface for the setting 'solid'. Use SevenZip.openOutArchive(ArchiveFormat) to get implementation of this interface.

Since:
9.20-2.00
Author:
Boris Brodski

Method Summary
 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.
 

Method Detail

setSolid

void setSolid(boolean solid)
              throws SevenZipException
Set solid archive option. If deactivated, some other solid options like 'solid files' will take no effect.

Parameters:
solid - true - use default configuration, false - deactivate solid block mode
Throws:
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.

setSolidFiles

void setSolidFiles(int countOfFilesPerBlock)
                   throws SevenZipException
Put specified count of files in a single solid block. See setSolid(boolean).

Parameters:
countOfFilesPerBlock - count of files per solid block. -1 - use default configuration
Throws:
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.
See Also:
setSolid(boolean)

setSolidSize

void setSolidSize(long countOfBytesPerBlock)
                  throws SevenZipException
Put specified count of bytes in a single solid block. See setSolid(boolean).

Parameters:
countOfBytesPerBlock - count of bytes per solid block. -1 - use default configuration.
Throws:
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.
See Also:
setSolid(boolean)

setSolidExtension

void setSolidExtension(boolean solidExtension)
                       throws SevenZipException
Put all files with the same extension following each other in the order of packing in a solid block. See setSolid(boolean).

Parameters:
solidExtension - true - activate this feature, false - use default configuration
Throws:
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.
See Also:
setSolid(boolean)