com.threerings.getdown.tools
Class JarDiffPatcher

java.lang.Object
  extended by com.threerings.getdown.tools.JarDiffPatcher
All Implemented Interfaces:
JarDiffCodes

public class JarDiffPatcher
extends Object
implements JarDiffCodes

Applies a jardiff patch to a jar file.


Field Summary
 
Fields inherited from interface com.threerings.getdown.tools.JarDiffCodes
INDEX_NAME, MOVE_COMMAND, REMOVE_COMMAND, VERSION_HEADER
 
Constructor Summary
JarDiffPatcher()
           
 
Method Summary
 void patchJar(String jarPath, String diffPath, OutputStream target, ProgressObserver observer)
          Patches the specified jar file using the supplied patch file and writing the new jar file to the supplied target.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JarDiffPatcher

public JarDiffPatcher()
Method Detail

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.