Interface IOutCreateArchiveZip

All Superinterfaces:
AutoCloseable, Closeable, IOutArchiveBase, IOutCreateArchive<IOutItemZip>, IOutFeatureSetLevel
All Known Implementing Classes:
OutArchiveZipImpl

public interface IOutCreateArchiveZip extends IOutCreateArchive<IOutItemZip>, IOutFeatureSetLevel
The interface provides functionality to create new Zip archives.
Standard way to get implementation is to use SevenZip.openOutArchiveZip(). See IOutCreateArchive -JavaDoc for more information. NOTE: Each instance should be closed using Closeable.close() method.
Since:
9.20-2.00
Author:
Boris Brodski
See Also:
  • Method Details

    • createArchive

      void createArchive(IOutStream outStream, int numberOfItems, IOutCreateCallback<? extends IOutItemZip> outCreateCallback) throws SevenZipException
      Create new archive. To update an existing archive open it first and then use IInArchive.getConnectedOutArchive() to get an instance of the IOutUpdateArchive interface.

      The outCreateCallback is designed to get necessary information about archive items and provide information about progress of the operation.

      Parameters:
      outStream - output stream to get the new archive
      numberOfItems - number of items in the new archive
      outCreateCallback - callback object to exchange information about archive create operation.
      Throws:
      SevenZipException - 7-Zip or 7-Zip-JBinding error occurs. Use SevenZipException.printStackTraceExtended() to get stack traces of this SevenZipException and of all thrown 'caused by' exceptions.