org.metastatic.rsync.v2
Class ChecksumDecoder

java.lang.Object
  |
  +--org.metastatic.rsync.ChecksumDecoder
        |
        +--org.metastatic.rsync.v2.ChecksumDecoder

public class ChecksumDecoder
extends ChecksumDecoder


Field Summary
 
Fields inherited from class org.metastatic.rsync.ChecksumDecoder
config, in, PROPERTY
 
Constructor Summary
ChecksumDecoder(Configuration config, InputStream in)
           
 
Method Summary
 ChecksumPair read()
          Decodes a checksum pair from the input stream.
 int read(List sums)
          Decodes checksums from the stream, storing them into the specified list, until the end of checksums is encountered.
 
Methods inherited from class org.metastatic.rsync.ChecksumDecoder
getInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChecksumDecoder

public ChecksumDecoder(Configuration config,
                       InputStream in)
Method Detail

read

public int read(List sums)
Description copied from class: ChecksumDecoder
Decodes checksums from the stream, storing them into the specified list, until the end of checksums is encountered.

Overrides:
read in class ChecksumDecoder
Parameters:
sums - The list to store the sums into.
Returns:
The number of checksums read.

read

public ChecksumPair read()
                  throws IOException
Description copied from class: ChecksumDecoder
Decodes a checksum pair from the input stream.

Specified by:
read in class ChecksumDecoder
Returns:
The pair read, or null if the end of stream is encountered.
Throws:
IOException - If an I/O error occurs.