com.liferay.portal.kernel.io.delta
Class DeltaUtil
java.lang.Object
com.liferay.portal.kernel.io.delta.DeltaUtil
public class DeltaUtil
- extends java.lang.Object
- Author:
- Connor McKay
|
Method Summary |
static void |
checksums(java.nio.channels.FileChannel originalFileChannel,
ByteChannelWriter checksumsByteChannelWriter)
|
static void |
checksums(java.nio.channels.FileChannel originalFileChannel,
ByteChannelWriter checksumsByteChannelWriter,
int blockLength)
|
static void |
delta(java.nio.channels.ReadableByteChannel modifiedReadableByteChannel,
ByteChannelReader checksumsByteChannelReader,
ByteChannelWriter deltaByteChannelWriter)
|
static void |
patch(java.nio.channels.FileChannel originalFileChannel,
java.nio.channels.WritableByteChannel patchedWritableByteChannel,
ByteChannelReader deltaByteChannelReader)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
DeltaUtil
public DeltaUtil()
checksums
public static void checksums(java.nio.channels.FileChannel originalFileChannel,
ByteChannelWriter checksumsByteChannelWriter)
throws java.io.IOException
- Throws:
java.io.IOException
checksums
public static void checksums(java.nio.channels.FileChannel originalFileChannel,
ByteChannelWriter checksumsByteChannelWriter,
int blockLength)
throws java.io.IOException
- Throws:
java.io.IOException
delta
public static void delta(java.nio.channels.ReadableByteChannel modifiedReadableByteChannel,
ByteChannelReader checksumsByteChannelReader,
ByteChannelWriter deltaByteChannelWriter)
throws java.io.IOException
- Throws:
java.io.IOException
patch
public static void patch(java.nio.channels.FileChannel originalFileChannel,
java.nio.channels.WritableByteChannel patchedWritableByteChannel,
ByteChannelReader deltaByteChannelReader)
throws java.io.IOException
- Throws:
java.io.IOException