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

    Modifier and Type
    Method
    Description
    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 Details

    • 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 is no guarantee that no further callback methods will be called. The first and last thrown exceptions will be saved and thrown later on from the originally called method such as IInArchive.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 is no guarantee that no further callback methods will be called. The first and last thrown exceptions will be saved and thrown later on from the originally called method such as IInArchive.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:
    • 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 is no guarantee that no further callback methods will be called. The first and last thrown exceptions will be saved and thrown later on from the originally called method such as IInArchive.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:
    • 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 is no guarantee that no further callback methods will be called. The first and last thrown exceptions will be saved and thrown later on from the originally called method such as IInArchive.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: