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
 void close()
          Close archive.
 ISimpleInArchiveItem getArchiveItem(int index)
          Return a simple representation of the archive item with index index.
 ISimpleInArchiveItem[] getArchiveItems()
          Return array of archive items with getNumberOfItems() elements.
 int getNumberOfItems()
          Return count of items in archive.
 

Method Detail

close

void close()
           throws SevenZipException
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 occur. Use SevenZipException.printStackTraceExtended() to get stack traces of this SevenZipException and of the all thrown 'cause by' exceptions.

getNumberOfItems

int getNumberOfItems()
                     throws SevenZipException
Return count of items in archive.

Returns:
count of item in archive.
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.

getArchiveItems

ISimpleInArchiveItem[] getArchiveItems()
                                       throws SevenZipException
Return array of archive items with getNumberOfItems() elements.

Returns:
array of archive items
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.

getArchiveItem

ISimpleInArchiveItem getArchiveItem(int index)
                                    throws SevenZipException
Return a simple representation of the archive item with index index.

Parameters:
index - index of the archive item to return
Returns:
corresponding instance of ISimpleInArchiveItem
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.