public class GDiffWriter extends Object implements DiffWriter
Modifier and Type | Field and Description |
---|---|
static int |
CHUNK_SIZE
Max length of a chunk.
|
static int |
COPY_INT_INT |
static int |
COPY_INT_UBYTE |
static int |
COPY_INT_USHORT |
static int |
COPY_LONG_INT |
static int |
COPY_USHORT_INT |
static int |
COPY_USHORT_UBYTE |
static int |
COPY_USHORT_USHORT |
static int |
DATA_INT |
static int |
DATA_MAX
Max length for single length data encode.
|
static int |
DATA_USHORT |
static byte |
EOF |
Constructor and Description |
---|
GDiffWriter(DataOutputStream os)
Constructs a new GDiffWriter.
|
GDiffWriter(OutputStream output)
Constructs a new GDiffWriter.
|
public static final int CHUNK_SIZE
public static final byte EOF
public static final int DATA_MAX
public static final int DATA_USHORT
public static final int DATA_INT
public static final int COPY_USHORT_UBYTE
public static final int COPY_USHORT_USHORT
public static final int COPY_USHORT_INT
public static final int COPY_INT_UBYTE
public static final int COPY_INT_USHORT
public static final int COPY_INT_INT
public static final int COPY_LONG_INT
public GDiffWriter(DataOutputStream os) throws IOException
IOException
public GDiffWriter(OutputStream output) throws IOException
IOException
public void addCopy(long offset, int length) throws IOException
DiffWriter
addCopy
in interface DiffWriter
IOException
public void addData(byte b) throws IOException
addData
in interface DiffWriter
IOException
public void flush() throws IOException
flush
in interface DiffWriter
IOException
public void close() throws IOException
close
in interface DiffWriter
close
in interface Closeable
close
in interface AutoCloseable
IOException