public class Patch extends Object
| Constructor and Description |
|---|
Patch() |
| Modifier and Type | Method and Description |
|---|---|
static void |
patch(byte[] old,
byte[] patch,
OutputStream out)
Using an old file and its accompanying patch, this method generates a new
(updated) file and writes it to an
OutputStream. |
public static void patch(byte[] old,
byte[] patch,
OutputStream out)
throws org.apache.commons.compress.compressors.CompressorException,
InvalidHeaderException,
IOException
OutputStream.old - the original ('old') state of the binarypatch - a binary patch file to apply to the old stateout - an OutputStream to write the patched binary toorg.apache.commons.compress.compressors.CompressorException - when a compression error occurs.InvalidHeaderException - when the bsdiff header is malformed or not
present.IOException - when an I/O error occursCopyright © 2016 Colorado State University. All rights reserved.