public class Diff extends Object
| Constructor and Description |
|---|
Diff() |
| Modifier and Type | Method and Description |
|---|---|
static void |
diff(byte[] oldBytes,
byte[] newBytes,
OutputStream out)
Using two different versions of a file, generate a bsdiff patch that can
be applied to the old file to create the new file.
|
static void |
diff(byte[] oldBytes,
byte[] newBytes,
OutputStream out,
DiffSettings settings)
Using two different versions of a file, generate a bsdiff patch that can
be applied to the old file to create the new file.
|
public static void diff(byte[] oldBytes,
byte[] newBytes,
OutputStream out)
throws org.apache.commons.compress.compressors.CompressorException,
InvalidHeaderException,
IOException
oldBytes - The original ('old') state of the file/binary.newBytes - New state of the file/binary that will be compared
to create a patch fileout - An OutputStream to write the patch file toorg.apache.commons.compress.compressors.CompressorException - when a compression error occurs.InvalidHeaderException - when the bsdiff header is malformed or not
present.IOException - when an error occurs writing the bsdiff control
blocks.public static void diff(byte[] oldBytes,
byte[] newBytes,
OutputStream out,
DiffSettings settings)
throws org.apache.commons.compress.compressors.CompressorException,
InvalidHeaderException,
IOException
oldBytes - The original ('old') state of the file/binary.newBytes - New state of the file/binary that will be compared
to create a patch fileout - An OutputStream to write the patch file tosettings - A DiffSettings implementation, which defines
the compression and suffix sort algorithms to
create the patch with.org.apache.commons.compress.compressors.CompressorException - when a compression error occurs.InvalidHeaderException - when the bsdiff header is malformed or not
present.IOException - when an error occurs writing the bsdiff control
blocks.Copyright © 2016 Colorado State University. All rights reserved.