com.threerings.getdown.tools
Class JarDiff

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

public class JarDiff
extends Object
implements JarDiffCodes

JarDiff is able to create a jar file containing the delta between two jar files (old and new). The delta jar file can then be applied to the old jar file to reconstruct the new jar file.

Refer to the JNLP spec for details on how this is done.

Version:
1.13, 06/26/03

Field Summary
 
Fields inherited from interface com.threerings.getdown.tools.JarDiffCodes
INDEX_NAME, MOVE_COMMAND, REMOVE_COMMAND, VERSION_HEADER
 
Constructor Summary
JarDiff()
           
 
Method Summary
static void createPatch(String oldPath, String newPath, OutputStream os, boolean minimal)
          Creates a patch from the two passed in files, writing the result to os.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JarDiff

public JarDiff()
Method Detail

createPatch

public static void createPatch(String oldPath,
                               String newPath,
                               OutputStream os,
                               boolean minimal)
                        throws IOException
Creates a patch from the two passed in files, writing the result to os.

Throws:
IOException


Copyright © 2013. All Rights Reserved.