bsdiff

BSDiff.BSDiff

BSDiff.BSDiff()

Creates a new BSDiff instance to diff and patch binary files.

BSDiff.diff

BSDiff.diff(anOldFile, aNewFile, aPatchFile)

Given anOldFile and aNewFile binary file, the two will be compared and a new compressed aPatchFile will be generated. Check compression to be used with BSDiff.getCompression().

BSDiff.diffBytes

BSDiff.diffBytes(oldArrayOfBytes, newArrayOfBytes) : ArrayOfBytes

Given oldArrayOfBytes and newArrayOfBytes, the two will be compared and a new compressed ArrayOfBytes will be generated and returned. Check compression to be used with BSDiff.getCompression().

BSDiff.getCompression

BSDiff.getCompression() : String

Returns the current compression method in use.

BSDiff.patchBytes

BSDiff.patchBytes(oldFile, patchFile, newFile) : ArrayOfBytes

Given an oldFile will apply a patchFile (produced by diff/diffBytes) and write the result to newFile.

BSDiff.setCompression

BSDiff.setCompression(aCompression)

Sets a different compression method to be used (based on Apache Commons Compression available methods).