public class DebugDiffWriter extends java.lang.Object implements DiffWriter
Modifier and Type | Field and Description |
---|---|
private java.io.ByteArrayOutputStream |
os |
Constructor and Description |
---|
DebugDiffWriter()
Constructs a new DebugDiffWriter.
|
Modifier and Type | Method and Description |
---|---|
void |
addCopy(long offset,
int length)
Add a GDIFF copy instruction.
|
void |
addData(byte b)
Add a GDIFF data instruction.
|
void |
close()
Closes this stream.
|
void |
flush()
Flushes to output, e.g.
|
private void |
writeBuf() |
public void addCopy(long offset, int length) throws java.io.IOException
DiffWriter
addCopy
in interface DiffWriter
java.io.IOException
public void addData(byte b) throws java.io.IOException
DiffWriter
addData
in interface DiffWriter
java.io.IOException
private void writeBuf()
public void flush() throws java.io.IOException
DiffWriter
flush
in interface DiffWriter
java.io.IOException
public void close() throws java.io.IOException
DiffWriter
DiffWriter
will invoke this method at the end.close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in interface DiffWriter
java.io.IOException