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
IOExceptionpublic GDiffWriter(OutputStream output) throws IOException
IOExceptionpublic void addCopy(long offset,
int length)
throws IOException
DiffWriteraddCopy in interface DiffWriterIOExceptionpublic void addData(byte b)
throws IOException
addData in interface DiffWriterIOExceptionpublic void flush()
throws IOException
flush in interface DiffWriterIOExceptionpublic void close()
throws IOException
close in interface DiffWriterclose in interface Closeableclose in interface AutoCloseableIOException