com.myJava.file.delta
Class DeltaLayer
java.lang.Object
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
Constructor Summary |
DeltaLayer(java.io.InputStream stream,
java.lang.String name)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DeltaLayer
public DeltaLayer(java.io.InputStream stream,
java.lang.String name)
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