com.nothome.delta
Interface DiffWriter

All Superinterfaces:
Closeable
All Known Implementing Classes:
DebugDiffWriter, GDiffWriter

public interface DiffWriter
extends Closeable

Interface for DIFF writers.


Method Summary
 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.
 

Method Detail

addCopy

void addCopy(long offset,
             int length)
             throws IOException
Add a GDIFF copy instruction.

Throws:
IOException

addData

void addData(byte b)
             throws IOException
Add a GDIFF data instruction. Implementors should buffer the data.

Throws:
IOException

flush

void flush()
           throws IOException
Flushes to output, e.g. any data added.

Throws:
IOException

close

void close()
           throws IOException
Closes this stream. Note that Diff will invoke this method at the end.

Specified by:
close in interface Closeable
Throws:
IOException


Copyright © 2003-2008. All Rights Reserved.