|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.getdown.tools.Patcher
public class Patcher
Applies a unified patch file to an application directory, providing percentage completion feedback along the way. Note: the patcher is not thread safe. Create a separate patcher instance for each patching action that is desired.
| Field Summary | |
|---|---|
static String |
CREATE
A suffix appended to file names to indicate that a file should be newly created. |
static String |
DELETE
A suffix appended to file names to indicate that a file should be deleted. |
static String |
PATCH
A suffix appended to file names to indicate that a file should be patched. |
| Constructor Summary | |
|---|---|
Patcher()
|
|
| Method Summary | |
|---|---|
static void |
main(String[] args)
|
void |
patch(File appdir,
File patch,
ProgressObserver obs)
Applies the specified patch file to the application living in the specified application directory. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CREATE
public static final String PATCH
public static final String DELETE
| Constructor Detail |
|---|
public Patcher()
| Method Detail |
|---|
public void patch(File appdir,
File patch,
ProgressObserver obs)
throws IOException
Note: this method runs on the calling thread, thus the caller may want to make use of a separate thread in conjunction with the patcher so that the user interface is not blocked for the duration of the patch.
IOExceptionpublic static void main(String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||