com.threerings.getdown.tools
Class JarDiffPatcher
java.lang.Object
com.threerings.getdown.tools.JarDiffPatcher
- All Implemented Interfaces:
- JarDiffCodes
public class JarDiffPatcher
- extends Object
- implements JarDiffCodes
Applies a jardiff patch to a jar file.
JarDiffPatcher
public JarDiffPatcher()
patchJar
public void patchJar(String jarPath,
String diffPath,
OutputStream target,
ProgressObserver observer)
throws IOException
- Patches the specified jar file using the supplied patch file and writing
the new jar file to the supplied target.
- Parameters:
jarPath - the path to the original jar file.diffPath - the path to the jardiff patch file.target - the output stream to which we will write the patched jar.observer - an optional observer to be notified of patching progress.
- Throws:
IOException - if any problem occurs during patching.
Copyright © 2013. All Rights Reserved.