Uh oh!
There was an error while loading. Please reload this page.
- 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()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) : ArrayOfBytesGiven 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() : StringReturns the current compression method in use.
BSDiff.patchBytes(oldFile,patchFile,newFile) : ArrayOfBytesGiven 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).