Liferay 6.1.2-ce-ga3

com.liferay.portal.kernel.io.delta
Class DeltaUtil

java.lang.Object
  extended by com.liferay.portal.kernel.io.delta.DeltaUtil

public class DeltaUtil
extends Object


Field Summary
static int BUFFER_FACTOR
           
static byte DATA_KEY
           
static byte EOF_KEY
           
static byte PROTOCOL_VERSION
           
static byte REFERENCE_KEY
           
static byte REFERENCE_RANGE_KEY
           
 
Constructor Summary
DeltaUtil()
           
 
Method Summary
static void checksums(FileChannel originalFileChannel, ByteChannelWriter checksumsByteChannelWriter)
           
static void checksums(FileChannel originalFileChannel, ByteChannelWriter checksumsByteChannelWriter, int blockLength)
           
static void delta(ReadableByteChannel modifiedReadableByteChannel, ByteChannelReader checksumsByteChannelReader, ByteChannelWriter deltaByteChannelWriter)
           
static void patch(FileChannel originalFileChannel, WritableByteChannel patchedWritableByteChannel, ByteChannelReader deltaByteChannelReader)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BUFFER_FACTOR

public static final int BUFFER_FACTOR
See Also:
Constant Field Values

DATA_KEY

public static final byte DATA_KEY
See Also:
Constant Field Values

EOF_KEY

public static final byte EOF_KEY
See Also:
Constant Field Values

PROTOCOL_VERSION

public static final byte PROTOCOL_VERSION
See Also:
Constant Field Values

REFERENCE_KEY

public static final byte REFERENCE_KEY
See Also:
Constant Field Values

REFERENCE_RANGE_KEY

public static final byte REFERENCE_RANGE_KEY
See Also:
Constant Field Values
Constructor Detail

DeltaUtil

public DeltaUtil()
Method Detail

checksums

public static void checksums(FileChannel originalFileChannel,
                             ByteChannelWriter checksumsByteChannelWriter)
                      throws IOException
Throws:
IOException

checksums

public static void checksums(FileChannel originalFileChannel,
                             ByteChannelWriter checksumsByteChannelWriter,
                             int blockLength)
                      throws IOException
Throws:
IOException

delta

public static void delta(ReadableByteChannel modifiedReadableByteChannel,
                         ByteChannelReader checksumsByteChannelReader,
                         ByteChannelWriter deltaByteChannelWriter)
                  throws IOException
Throws:
IOException

patch

public static void patch(FileChannel originalFileChannel,
                         WritableByteChannel patchedWritableByteChannel,
                         ByteChannelReader deltaByteChannelReader)
                  throws IOException
Throws:
IOException

Liferay 6.1.2-ce-ga3