org.metastatic.rsync.v2
Class PlainDeltaEncoder
java.lang.Object
|
+--org.metastatic.rsync.DeltaEncoder
|
+--org.metastatic.rsync.v2.PlainDeltaEncoder
- public class PlainDeltaEncoder
- extends DeltaEncoder
Method Summary |
void |
doFinal()
Finish encoding the deltas (at least, this set of deltas) and write any
encoding-specific end-of-deltas entity. |
boolean |
requiresOrder()
Returns whether or not this encoder requires the deltas it is
presented to be in write offset order, that is, the deltas
passed to the write methods must be presented
in increasing order of their Delta.getWriteOffset()
values. |
void |
write(Delta delta)
Write (encode) a single delta to the output stream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PlainDeltaEncoder
public PlainDeltaEncoder(Configuration config,
OutputStream out)
write
public void write(Delta delta)
throws IOException
- Description copied from class:
DeltaEncoder
- Write (encode) a single delta to the output stream.
- Specified by:
write
in class DeltaEncoder
- Parameters:
delta
- The delta to write.
- Throws:
IOException
- If an I/O error occurs.
doFinal
public void doFinal()
throws IOException
- Description copied from class:
DeltaEncoder
- Finish encoding the deltas (at least, this set of deltas) and write any
encoding-specific end-of-deltas entity.
- Specified by:
doFinal
in class DeltaEncoder
- Throws:
IOException
- If an I/O error occurs.
requiresOrder
public boolean requiresOrder()
- Description copied from class:
DeltaEncoder
- Returns whether or not this encoder requires the deltas it is
presented to be in write offset order, that is, the deltas
passed to the
write
methods must be presented
in increasing order of their Delta.getWriteOffset()
values.
- Specified by:
requiresOrder
in class DeltaEncoder
- Returns:
- True if this encoder requires write order.