|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.sevenzipjbinding.simple.impl.SimpleInArchiveImpl
public class SimpleInArchiveImpl
Standard implementation of ISimpleInArchive
, simplified 7-Zip-JBinding interface.
Constructor Summary | |
---|---|
SimpleInArchiveImpl(IInArchive sevenZipInArchive)
Constructing an instance of SimpleInArchiveImpl from a instance of IInArchive . |
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 ISimpleInArchive.getNumberOfItems() elements. |
int |
getNumberOfItems()
Return count of items in archive. |
IInArchive |
testAndGetSafeSevenZipInArchive()
Tests, if 7-Zip In archive interface can be accessed safely. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleInArchiveImpl(IInArchive sevenZipInArchive)
SimpleInArchiveImpl
from a instance of IInArchive
.
sevenZipInArchive
- a base instance of IInArchive
Method Detail |
---|
public void close() throws SevenZipException
close
in interface ISimpleInArchive
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.public ISimpleInArchiveItem[] getArchiveItems() throws SevenZipException
ISimpleInArchive.getNumberOfItems()
elements.
getArchiveItems
in interface ISimpleInArchive
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.public int getNumberOfItems() throws SevenZipException
getNumberOfItems
in interface ISimpleInArchive
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.public IInArchive testAndGetSafeSevenZipInArchive() throws SevenZipException
SevenZipException
- archive can't be accessed any morepublic ISimpleInArchiveItem getArchiveItem(int index) throws SevenZipException
index
.
getArchiveItem
in interface ISimpleInArchive
index
- index of the archive item to return
ISimpleInArchiveItem
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |