net.sf.sevenzipjbinding
Interface IOutCreateArchiveZip
- All Superinterfaces: 
- java.io.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:
- IOutCreateArchive,- ArchiveFormat.ZIP
 
 
 
| Methods inherited from interface java.io.Closeable | 
| close | 
 
 
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 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 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 occur. Use- SevenZipException.printStackTraceExtended()to get
             stack traces of this SevenZipException and of the all thrown 'cause by' exceptions.