public interface VCDiffStreamingDecoder
| Modifier and Type | Method and Description |
|---|---|
void |
decodeChunk(byte[] data,
int offset,
int length,
OutputStream out)
Deprecated.
use
decodeChunk(ByteBuffer, OutputStream)
Accepts "data[offset,offset+length-1]" as additional data received in the
compressed stream. If any chunks of data can be fully decoded,
they are appended to out. |
void |
decodeChunk(byte[] data,
OutputStream out)
Convenience method equivalent to decodeChunk(data, 0, data.length, out)
|
void |
decodeChunk(ByteBuffer data,
OutputStream out)
Accepts "data[offset,offset+length-1]" as additional data received in the
compressed stream.
|
void |
finishDecoding()
Finishes decoding after all data has been received.
|
void |
setAllowVcdTarget(boolean allowVcdTarget)
This interface must be called before startDecoding().
|
boolean |
setMaximumTargetFileSize(long newMaximumTargetFileSize)
Specifies the maximum allowable target file size.
|
boolean |
setMaximumTargetWindowSize(int newMaximumTargetWindowSize)
Specifies the maximum allowable target *window* size.
|
void |
startDecoding(byte[] dictionary)
Deprecated.
|
void |
startDecoding(ByteBuffer dictionary)
Resets the dictionary to dictionary parameter
and sets up the data structures for decoding.
|
@Deprecated void startDecoding(byte[] dictionary)
startDecoding(ByteBuffer)void startDecoding(ByteBuffer dictionary)
dictionary - dictionary the decoder is initialized with@Deprecated void decodeChunk(byte[] data, int offset, int length, OutputStream out) throws IOException
decodeChunk(ByteBuffer, OutputStream)
Accepts "data[offset,offset+length-1]" as additional data received in the
compressed stream. If any chunks of data can be fully decoded,
they are appended to out.data - data to decoderoffset - offset in data to decode fromlength - number of bytes in data to decideout - OutputStream to write decoded data toIOException - if an error occurred decoding chunk or writing
the decoded chunk to outvoid decodeChunk(ByteBuffer data, OutputStream out) throws IOException
data - data to decoderout - OutputStream to write decoded data toIOException - if an error occurred decoding chunk or writing
the decoded chunk to outvoid decodeChunk(byte[] data,
OutputStream out)
throws IOException
data - data to decoderout - OutputStream to write decoded data toIOException - if an error occurred decoding chunk or writing
the decoded chunk to outvoid finishDecoding()
throws IOException
IOException - if there's an error finishing decodingboolean setMaximumTargetFileSize(long newMaximumTargetFileSize)
newMaximumTargetFileSize - maximum size allowed output sizeboolean setMaximumTargetWindowSize(int newMaximumTargetWindowSize)
newMaximumTargetWindowSize - maximum size of target windows allowedvoid setAllowVcdTarget(boolean allowVcdTarget)
allowVcdTarget - whether or not to allow the decoder to use decoded VCD
data as a targetCopyright © 2018. All rights reserved.