jnlp.sample.jardiff
Class JarDiffPatcher

java.lang.Object
  extended by jnlp.sample.jardiff.JarDiffPatcher
All Implemented Interfaces:
JarDiffConstants, Patcher

public class JarDiffPatcher
extends Object
implements JarDiffConstants, Patcher

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.11, 06/26/03

Nested Class Summary
 
Nested classes/interfaces inherited from interface jnlp.sample.jardiff.Patcher
Patcher.PatchDelegate
 
Field Summary
 
Fields inherited from interface jnlp.sample.jardiff.JarDiffConstants
INDEX_NAME, MOVE_COMMAND, REMOVE_COMMAND, VERSION_HEADER
 
Constructor Summary
JarDiffPatcher()
           
 
Method Summary
 void applyPatch(Patcher.PatchDelegate delegate, String oldJarPath, String jarDiffPath, OutputStream result)
          Applies a patch previously created with createPatch.
static ResourceBundle getResources()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JarDiffPatcher

public JarDiffPatcher()
Method Detail

getResources

public static ResourceBundle getResources()

applyPatch

public void applyPatch(Patcher.PatchDelegate delegate,
                       String oldJarPath,
                       String jarDiffPath,
                       OutputStream result)
                throws IOException
Description copied from interface: Patcher
Applies a patch previously created with createPatch. Pass in a delegate to be notified of the status of the patch.

Specified by:
applyPatch in interface Patcher
Throws:
IOException


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