|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.sevenzipjbinding.impl.SequentialInStreamImpl
InputStreamSequentialInStream
@Deprecated public class SequentialInStreamImpl
Implementation of ISequentialInStream
based on InputStream
.
Constructor Summary | |
---|---|
SequentialInStreamImpl(java.io.InputStream inputStream)
Deprecated. Create instance of SequentialInStreamImpl based on InputStream |
Method Summary | |
---|---|
void |
close()
Deprecated. |
java.io.InputStream |
getInputStream()
Deprecated. Get underlaying input stream |
int |
read(byte[] data)
Deprecated. Reads at least 1 and maximum data.length bytes from the in-stream. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SequentialInStreamImpl(java.io.InputStream inputStream)
SequentialInStreamImpl
based on InputStream
inputStream
- input stream to useMethod Detail |
---|
public int read(byte[] data) throws SevenZipException
data.length
bytes from the in-stream. If data.length == 0
0 should be returned. If data.length != 0
, then return value 0 indicates end-of-stream (EOF). This
means no more bytes can be read from the stream. data.length
. You must call read()
function in loop, if you need exact amount of data.
read
in interface ISequentialInStream
data
- buffer to get read data
data
array. 0 - represents end of stream.
SevenZipException
- in error case. If this method ends with an exception, the current operation will be reported to 7-Zip
as failed. There are no guarantee, that there are no further call back methods will get called. The
first and last thrown exceptions will be saved and thrown later on from the originally called method
such as ISevenZipInArchive.extract()
or SevenZip.openInArchive()
. Up to
four exceptions depending on the situation can be saved for further analysis. See
SevenZipException
and SevenZipException.printStackTraceExtended()
for details.public java.io.InputStream getInputStream()
public void close() throws java.io.IOException
close
in interface java.io.Closeable
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |