Package net.sf.sevenzipjbinding.simple
Interface ISimpleInArchive
- All Known Implementing Classes:
SimpleInArchiveImpl
public interface ISimpleInArchive
Simplified interface for C++
IInArchive. For binding of original 7-Zip C++ interface see
IInArchive.- Since:
- 4.65-1
- Author:
- Boris Brodski
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close archive.getArchiveItem(int index) Return a simple representation of the archive item with indexindex.Return array of archive items withgetNumberOfItems()elements.intReturn count of items in archive.
-
Method Details
-
close
Close archive. No more archive operations are possible.
Note: This method should be always called to free system resources.- 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.
-
getNumberOfItems
Return count of items in archive.- Returns:
- count of items in archive.
- 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.
-
getArchiveItems
Return array of archive items withgetNumberOfItems()elements.- Returns:
- array of archive items
- 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.
-
getArchiveItem
Return a simple representation of the archive item with indexindex.- Parameters:
index- index of the archive item to return- Returns:
- corresponding instance of
ISimpleInArchiveItem - 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.
-