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 ISevenZipInArchive.

Version:
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 - intern error occurs. See Throwable.getMessage() for details.

getNumberOfItems

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

Returns:
count of item in archive.
Throws:
SevenZipException - error occurs. See Throwable.getMessage() for details.

getArchiveItems

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

Returns:
array of archive items
Throws:
SevenZipException - error occurs. See Throwable.getMessage() for details.

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 - error occurs. See Throwable.getMessage() for details.