|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.nothome.delta.GDiffWriter
public class GDiffWriter
Outputs a diff following the GDIFF file specification available at http://www.w3.org/TR/NOTE-gdiff-19970901.html.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
GDiffWriter(DataOutputStream os)
Constructs a new GDiffWriter. |
|
GDiffWriter(OutputStream output)
Constructs a new GDiffWriter. |
|
| Method Summary | |
|---|---|
void |
addCopy(long offset,
int length)
Add a GDIFF copy instruction. |
void |
addData(byte b)
Adds a data byte. |
void |
close()
Writes the final EOF byte, closes the underlying stream. |
void |
flush()
Flushes accumulated data bytes, if any. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public GDiffWriter(DataOutputStream os)
throws IOException
IOException
public GDiffWriter(OutputStream output)
throws IOException
IOException| Method Detail |
|---|
public void addCopy(long offset,
int length)
throws IOException
DiffWriter
addCopy in interface DiffWriterIOException
public void addData(byte b)
throws IOException
addData in interface DiffWriterIOException
public void flush()
throws IOException
flush in interface DiffWriterIOException
public void close()
throws IOException
close in interface DiffWriterclose in interface CloseableIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||