jnlp.sample.jardiff
Class JarDiff

java.lang.Object
  extended by jnlp.sample.jardiff.JarDiff
All Implemented Interfaces:
JarDiffConstants

public class JarDiff
extends java.lang.Object
implements JarDiffConstants

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 jnlp.sample.jardiff.JarDiffConstants
INDEX_NAME, MOVE_COMMAND, REMOVE_COMMAND, VERSION_HEADER
 
Constructor Summary
JarDiff()
           
 
Method Summary
static void createPatch(java.lang.String oldPath, java.lang.String newPath, java.io.OutputStream os, boolean minimal)
          Creates a patch from the two passed in files, writing the result to os.
static java.util.ResourceBundle getResources()
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JarDiff

public JarDiff()
Method Detail

getResources

public static java.util.ResourceBundle getResources()

createPatch

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

Throws:
java.io.IOException

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2005-2009 Sun Microsystems. All Rights Reserved.