com.myJava.file.delta
Class LayerWriterDeltaProcessor

java.lang.Object
  extended by com.myJava.file.delta.LayerWriterDeltaProcessor
All Implemented Interfaces:
Constants, DeltaProcessor

public class LayerWriterDeltaProcessor
extends java.lang.Object
implements DeltaProcessor, Constants

Diff file format : Set of items, which are either : [NEW_BYTES_SIGNATURE : 8 bytes][SIZE : 4 bytes][DATA : *SIZE* bytes] or [FOUND_BLOCK_SIGNATURE : 8 bytes][FROM_POSITION : 8 bytes][TO_POSITION : 8 bytes]

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
LayerWriterDeltaProcessor(java.io.OutputStream out)
           
 
Method Summary
 void begin()
           
 void blockFound(HashSequenceEntry entry, LinkedList block)
           
 void blockFound(long readFrom, long readTo)
           
 void bytesLost(long from, long to)
           
 void end()
           
 void newByte(byte data)
           
 void newBytes(byte[] data, int offset, int len)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayerWriterDeltaProcessor

public LayerWriterDeltaProcessor(java.io.OutputStream out)
Method Detail

blockFound

public void blockFound(HashSequenceEntry entry,
                       LinkedList block)
                throws DeltaProcessorException
Specified by:
blockFound in interface DeltaProcessor
Throws:
DeltaProcessorException

blockFound

public void blockFound(long readFrom,
                       long readTo)
                throws DeltaProcessorException
Specified by:
blockFound in interface DeltaProcessor
Throws:
DeltaProcessorException

newBytes

public void newBytes(byte[] data,
                     int offset,
                     int len)
              throws DeltaProcessorException
Specified by:
newBytes in interface DeltaProcessor
Throws:
DeltaProcessorException

newByte

public void newByte(byte data)
             throws DeltaProcessorException
Specified by:
newByte in interface DeltaProcessor
Throws:
DeltaProcessorException

bytesLost

public void bytesLost(long from,
                      long to)
               throws DeltaProcessorException
Specified by:
bytesLost in interface DeltaProcessor
Throws:
DeltaProcessorException

begin

public void begin()
           throws DeltaProcessorException
Specified by:
begin in interface DeltaProcessor
Throws:
DeltaProcessorException

end

public void end()
         throws DeltaProcessorException
Specified by:
end in interface DeltaProcessor
Throws:
DeltaProcessorException