net.kano.joscar.rvproto.ft
Class FileTransferChecksum

java.lang.Object
  extended byFileTransferChecksum
All Implemented Interfaces:
java.util.zip.Checksum

public final class FileTransferChecksum
extends java.lang.Object
implements java.util.zip.Checksum

An implementation of the checksumming method used by AOL Instant Messenger's file transfer protocol.


Constructor Summary
FileTransferChecksum()
          Creates a new file transfer checksum computer object.
 
Method Summary
 long getValue()
           
 void reset()
           
 void update(byte[] input, int offset, int len)
           
 void update(int value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileTransferChecksum

public FileTransferChecksum()
Creates a new file transfer checksum computer object.

Method Detail

update

public void update(int value)
Specified by:
update in interface java.util.zip.Checksum

update

public void update(byte[] input,
                   int offset,
                   int len)
Specified by:
update in interface java.util.zip.Checksum

getValue

public long getValue()
Specified by:
getValue in interface java.util.zip.Checksum

reset

public void reset()
Specified by:
reset in interface java.util.zip.Checksum