Package net.sf.sevenzipjbinding
Interface IOutCreateArchiveZip
- All Superinterfaces:
AutoCloseable,Closeable,IOutArchiveBase,IOutCreateArchive<IOutItemZip>,IOutFeatureSetLevel
- All Known Implementing Classes:
OutArchiveZipImpl
The interface provides functionality to create new Zip archives.
Standard way to get implementation is to use
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 Summary
Modifier and TypeMethodDescriptionvoidcreateArchive(IOutStream outStream, int numberOfItems, IOutCreateCallback<? extends IOutItemZip> outCreateCallback) Create new archive.Methods inherited from interface net.sf.sevenzipjbinding.IOutArchiveBase
getTracePrintStream, isTrace, setTrace, setTracePrintStreamMethods inherited from interface net.sf.sevenzipjbinding.IOutCreateArchive
createArchive, getArchiveFormatMethods inherited from interface net.sf.sevenzipjbinding.IOutFeatureSetLevel
setLevel
-
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 useIInArchive.getConnectedOutArchive()to get an instance of theIOutUpdateArchiveinterface.
TheoutCreateCallbackis designed to get necessary information about archive items and provide information about progress of the operation.
- Parameters:
outStream- output stream to get the new archivenumberOfItems- number of items in the new archiveoutCreateCallback- callback object to exchange information about archive create operation.- Throws:
SevenZipException- 7-Zip or 7-Zip-JBinding error occurs. UseSevenZipException.printStackTraceExtended()to get stack traces of this SevenZipException and of all thrown 'caused by' exceptions.
-