|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.vxart.zipupdate.UpdateEngine
public class UpdateEngine
The work horse of the whole update system containing the diff and patch functionality as well as hooks to register listeners.
Constructor Summary | |
---|---|
UpdateEngine()
Constructs a new UpdateEngine instance. |
Method Summary | |
---|---|
void |
addProgressListener(ProgressListener listener)
Registers a ProgressListener with this instance of an UpdateEngine. |
static void |
main(java.lang.String[] args)
Provides a basic stand-alone way to update archives. |
void |
removeProgressListener(ProgressListener listener)
Unregisters a ProgressListener with this instance of an UpdateEngine. |
int |
update(java.util.zip.ZipFile[] archives,
UpdateLocation[] locations,
java.lang.String[] messages)
Updates multiple ZIP files from the given URLs. |
boolean |
update(java.util.zip.ZipFile archive,
UpdateLocation location)
Updates a ZIP file from a given URL. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UpdateEngine()
Method Detail |
---|
public static void main(java.lang.String[] args) throws java.lang.Exception
args
-
java.lang.Exception
public int update(java.util.zip.ZipFile[] archives, UpdateLocation[] locations, java.lang.String[] messages) throws java.io.IOException
archives
- the ZIP files to updatelocations
- the locations where to look for the up-to-date ZIP filesmessages
- the messages to display for each ZIP file
java.io.IOException
public boolean update(java.util.zip.ZipFile archive, UpdateLocation location) throws java.io.IOException
archive
- the ZIP file to updatelocation
- the location where to look for the up-to-date ZIP file
java.io.IOException
public void addProgressListener(ProgressListener listener)
public void removeProgressListener(ProgressListener listener)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |