com.myJava.file.delta.sequence
Class SequenceAdapter

java.lang.Object
  extended by com.myJava.file.delta.sequence.SequenceAdapter
All Implemented Interfaces:
Constants

public class SequenceAdapter
extends java.lang.Object
implements Constants

Format : - VERSION : short - BLOCKSIZE : long For each entry : - Quick hash : int - Index : long - Size : int - Full hash : byte[]

Author:
Olivier PETRUCCI

Areca Build ID : 7299034069467778562

Field Summary
 
Fields inherited from interface com.myJava.file.delta.Constants
HASH_ALG, HASH_ALG_KLENGTH, SIG_NEW, SIG_READ
 
Constructor Summary
SequenceAdapter()
           
 
Method Summary
 HashSequence deserialize(byte[] data)
           
 HashSequence deserialize(java.io.InputStream in)
           
static SequenceAdapter getInstance()
           
 byte[] serialize(HashSequence sequence)
           
 void serialize(java.io.OutputStream out, HashSequence sequence)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SequenceAdapter

public SequenceAdapter()
Method Detail

getInstance

public static SequenceAdapter getInstance()

serialize

public void serialize(java.io.OutputStream out,
                      HashSequence sequence)
               throws java.io.IOException
Throws:
java.io.IOException

deserialize

public HashSequence deserialize(java.io.InputStream in)
                         throws java.io.IOException
Throws:
java.io.IOException

deserialize

public HashSequence deserialize(byte[] data)

serialize

public byte[] serialize(HashSequence sequence)