public class DeltaUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
DeltaUtil() |
Modifier and Type | Method and Description |
---|---|
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) |
public static final int BUFFER_FACTOR
public static final byte DATA_KEY
public static final byte EOF_KEY
public static final byte PROTOCOL_VERSION
public static final byte REFERENCE_KEY
public static final byte REFERENCE_RANGE_KEY
public static void checksums(java.nio.channels.FileChannel originalFileChannel, ByteChannelWriter checksumsByteChannelWriter) throws java.io.IOException
java.io.IOException
public static void checksums(java.nio.channels.FileChannel originalFileChannel, ByteChannelWriter checksumsByteChannelWriter, int blockLength) throws java.io.IOException
java.io.IOException
public static void delta(java.nio.channels.ReadableByteChannel modifiedReadableByteChannel, ByteChannelReader checksumsByteChannelReader, ByteChannelWriter deltaByteChannelWriter) throws java.io.IOException
java.io.IOException
public static void patch(java.nio.channels.FileChannel originalFileChannel, java.nio.channels.WritableByteChannel patchedWritableByteChannel, ByteChannelReader deltaByteChannelReader) throws java.io.IOException
java.io.IOException