-
Notifications
You must be signed in to change notification settings - Fork 6
bsdiff
Nuno Aguiar edited this page Dec 29, 2017
·
2 revisions
- BSDiff.BSDiff
- BSDiff.diff
- BSDiff.diffBytes
- BSDiff.getCompression
- BSDiff.patchBytes
- BSDiff.setCompression
BSDiff.BSDiff()
Creates a new BSDiff instance to diff and patch binary files.
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(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() : String
Returns the current compression method in use.
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(aCompression)
Sets a different compression method to be used (based on Apache Commons Compression available methods).