|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- the type of the corresponding archive item data class (out item), like IOutItem7z
or
IOutItemZip
. Use IOutItemAllFormats
interface to support all available archive formats.public interface IOutUpdateArchive<T extends IOutItemBase>
The interface provides functionality to update an existing archive. The standard way to get the implementation is to
use IInArchive.getConnectedOutArchive()
method like this:
IInArchive
inArchive =SevenZip
.openInArchive(ArchiveFormat.SEVEN_ZIP
, inStream);IOutUpdateArchive
<
IOutItem7z
>
outArchive = inArchive.openOutArchive(); if (outArchive instanceofIOutFeatureSetLevel
) { ((IOutFeatureSetLevel
)outArchive).setLevel(myLevel); } outArchive.updateItems(...); ... inArchive.close();
IInArchive
,
IOutItemBase
,
IOutItemAllFormats
Method Summary | |
---|---|
ArchiveFormat |
getArchiveFormat()
Return archive format used with this instance of IOutStream |
IInArchive |
getConnectedInArchive()
Get connected IInArchive for update operations. |
void |
updateItems(ISequentialOutStream outStream,
int numberOfItems,
IOutCreateCallback<T> outCreateCallback)
Update items in archive (actually creating a new one based on the old one). |
Methods inherited from interface net.sf.sevenzipjbinding.IOutArchiveBase |
---|
getTracePrintStream, isTrace, setTrace, setTracePrintStream |
Method Detail |
---|
void updateItems(ISequentialOutStream outStream, int numberOfItems, IOutCreateCallback<T> outCreateCallback) throws SevenZipException
outStream
- output stream to get the new archivenumberOfItems
- number of items in the new archiveoutCreateCallback
- create call back object to provide more information for archive update operation.
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.ArchiveFormat getArchiveFormat()
IOutStream
IOutStream
IInArchive getConnectedInArchive()
IInArchive
for update operations.
IInArchive
for update operations
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |