OUT - The output type the VCDiffCodeTableWriter usespublic class VCDiffEncoder<OUT> extends Object
| Constructor and Description |
|---|
VCDiffEncoder(VCDiffStreamingEncoder<OUT> streamingEncoder) |
| Modifier and Type | Method and Description |
|---|---|
void |
encode(byte[] data,
int offset,
int length,
OUT out)
Replaces old contents of output_string with the encoded form of
target_data.
|
void |
encode(byte[] data,
OUT out)
This is a convenience method that's equivalent to encode(data, 0, data.length, out)
|
public VCDiffEncoder(VCDiffStreamingEncoder<OUT> streamingEncoder)
public void encode(byte[] data,
int offset,
int length,
OUT out)
throws IOException
data - data to encodeoffset - offset into the data array to encode fromlength - number of bytes from the array to encodeout - writer to write encoded data toIOException - if an exception occurs in the encoder or writing to the output writerpublic void encode(byte[] data,
OUT out)
throws IOException
data - data to encodeout - writer to write encoded data toIOException - if an exception occurs in the encoder or writing to the output writerCopyright © 2018. All rights reserved.