org.metastatic.rsync.v2
Class PlainDeltaDecoder

java.lang.Object
  |
  +--org.metastatic.rsync.DeltaDecoder
        |
        +--org.metastatic.rsync.v2.PlainDeltaDecoder

public class PlainDeltaDecoder
extends DeltaDecoder


Field Summary
 
Fields inherited from class org.metastatic.rsync.DeltaDecoder
config, in, PROPERTY
 
Constructor Summary
PlainDeltaDecoder(Configuration config, InputStream in)
           
 
Method Summary
 Statistics getStatistics()
           
 Delta read()
          Read (decode) a single delta from the input stream.
 void setStatistics(Statistics stats)
           
 
Methods inherited from class org.metastatic.rsync.DeltaDecoder
getInstance, read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlainDeltaDecoder

public PlainDeltaDecoder(Configuration config,
                         InputStream in)
Method Detail

setStatistics

public void setStatistics(Statistics stats)

getStatistics

public Statistics getStatistics()

read

public Delta read()
           throws IOException
Description copied from class: DeltaDecoder
Read (decode) a single delta from the input stream.

If this encoding provides an end-of-deltas marker, then this method is required to return null upon receiving this marker.

Specified by:
read in class DeltaDecoder
Returns:
The delta read, or null
Throws:
IOException - If an I/O error occurs.