com.myJava.file.delta
Class DeltaLayer

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

public class DeltaLayer
extends java.lang.Object
implements Constants

Implements a diff layer over the original file.
Diff layers only store differences between the original file and the current file.

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
DeltaLayer(java.io.InputStream stream, java.lang.String name)
           
 
Method Summary
 void close()
           
 Bucket getCurrentBucket()
           
 java.io.InputStream getStream()
           
 void readNextBucket()
          Read the next bucket from the stream.
 java.lang.String toString()
           
 java.lang.String traverse()
          Read the whole content of the underlying stream and generates a String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DeltaLayer

public DeltaLayer(java.io.InputStream stream,
                  java.lang.String name)
Method Detail

getStream

public java.io.InputStream getStream()

close

public void close()
           throws java.io.IOException
Throws:
java.io.IOException

getCurrentBucket

public Bucket getCurrentBucket()

readNextBucket

public void readNextBucket()
                    throws java.io.IOException
Read the next bucket from the stream.
This bucket can be accessed by the "getCurrentBucket()" method.

Throws:
java.io.IOException

traverse

public java.lang.String traverse()
                          throws java.io.IOException
Read the whole content of the underlying stream and generates a String.

Throws:
java.io.IOException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object