|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjava.io.InputStream
org.tukaani.xz.DeltaInputStream
public class DeltaInputStream
Decodes raw Delta-filtered data (no XZ headers).
The delta filter doesn't change the size of the data and thus it cannot have an end-of-payload marker. It will simply decode until its input stream indicates end of input.
| Field Summary | |
|---|---|
static int |
DISTANCE_MAX
Largest supported delta calculation distance. |
static int |
DISTANCE_MIN
Smallest supported delta calculation distance. |
| Constructor Summary | |
|---|---|
DeltaInputStream(InputStream in,
int distance)
Creates a new Delta decoder with the given delta calculation distance. |
|
| Method Summary | |
|---|---|
int |
available()
Calls in.available(). |
void |
close()
Closes the stream and calls in.close(). |
int |
read()
Decode the next byte from this input stream. |
int |
read(byte[] buf,
int off,
int len)
Decode into an array of bytes. |
| Methods inherited from class java.io.InputStream |
|---|
mark, markSupported, read, reset, skip |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DISTANCE_MIN
public static final int DISTANCE_MAX
| Constructor Detail |
|---|
public DeltaInputStream(InputStream in,
int distance)
in - input stream from which Delta filtered data
is readdistance - delta calculation distance, must be in the
range [DISTANCE_MIN,
DISTANCE_MAX]| Method Detail |
|---|
public int read()
throws IOException
read in class InputStream-1 to indicate
the end of input on the input stream in
IOException - may be thrown by in
public int read(byte[] buf,
int off,
int len)
throws IOException
This calls in.read(buf, off, len) and defilters the
returned data.
read in class InputStreambuf - target buffer for decoded dataoff - start offset in buflen - maximum number of bytes to read
-1 to indicate
the end of the input stream in
XZIOException - if the stream has been closed
IOException - may be thrown by underlaying input
stream in
public int available()
throws IOException
in.available().
available in class InputStreamin.available()
IOException
public void close()
throws IOException
in.close().
If the stream was already closed, this does nothing.
close in interface Closeableclose in class InputStreamIOException - if thrown by in.close()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||