jnlp.sample.jardiff
Class JarDiffPatcher
java.lang.Object
jnlp.sample.jardiff.JarDiffPatcher
- All Implemented Interfaces:
- JarDiffConstants, Patcher
public class JarDiffPatcher
- extends java.lang.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
Method Summary |
void |
applyPatch(Patcher.PatchDelegate delegate,
java.lang.String oldJarPath,
java.lang.String jarDiffPath,
java.io.OutputStream result)
Applies a patch previously created with createPatch . |
static java.util.ResourceBundle |
getResources()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JarDiffPatcher
public JarDiffPatcher()
getResources
public static java.util.ResourceBundle getResources()
applyPatch
public void applyPatch(Patcher.PatchDelegate delegate,
java.lang.String oldJarPath,
java.lang.String jarDiffPath,
java.io.OutputStream result)
throws java.io.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:
java.io.IOException
Copyright © 2005-2010 Sun Microsystems. All Rights Reserved.