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.
| Modifier and Type | Field and Description |
|---|---|
| private final DeltaDecoder | |
| public static final int | DISTANCE_MAX
Largest supported delta calculation distance. |
| public static final int | DISTANCE_MIN
Smallest supported delta calculation distance. |
| private IOException | |
| private InputStream | |
| private final byte[] |
| Access | Constructor and Description |
|---|---|
| public | DeltaInputStream(InputStream
input stream from which Delta filtered data
is read in, int delta calculation distance, must be in the
range [ distance)DISTANCE_MIN,
DISTANCE_MAX]Creates a new Delta decoder with the given delta calculation distance. |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: the value returned byin.available()Overrides java. in.available().
|
| public void | close()
Overrides java. Implements java. in.close().
|
| public int | Returns: the next decoded byte, or-1 to indicate
the end of input on the input stream inImplements abstract java. |
| public int | Returns: number of bytes read, or-1 to indicate
the end of the input stream intarget buffer for decoded data buf, int start offset in off, int bufmaximum number of bytes to read len)Overrides java. |
| delta | back to summary |
|---|---|
| private final DeltaDecoder delta | |
| DISTANCE_MAX | back to summary |
|---|---|
| public static final int DISTANCE_MAX Largest supported delta calculation distance. | |
| DISTANCE_MIN | back to summary |
|---|---|
| public static final int DISTANCE_MIN Smallest supported delta calculation distance. | |
| exception | back to summary |
|---|---|
| private IOException exception | |
| in | back to summary |
|---|---|
| private InputStream in | |
| tempBuf | back to summary |
|---|---|
| private final byte[] tempBuf | |
| DeltaInputStream | back to summary |
|---|---|
| public DeltaInputStream(InputStream in, int distance) Creates a new Delta decoder with the given delta calculation distance.
| |
| available | back to summary |
|---|---|
| public int available() throws IOException Overrides java. Calls
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. Closes the stream and calls
| |
| read | back to summary |
|---|---|
| public int read() throws IOException Implements abstract java. Decode the next byte from this input stream.
| |
| read | back to summary |
|---|---|
| public int read(byte[] buf, int off, int len) throws IOException Overrides java. Decode into an array of bytes.
This calls
| |