|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Thread
org.ceryle.ui.xnode.archive.ZipWriter
public class ZipWriter
A utility extending Thread used to archive XNode database collections.
Note that the org.ceryle.xnode.archive package is not part of the standard distribution of the XNode API or implementation, as it includes too many UI ties.
Copyright 2001-2007 Murray Altheim. All Rights Reserved.
See LICENSE included with distribution.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
Thread.State, Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
static int |
compressionLevel
An enumerated int setting the compression level used for the zip file. |
static String |
manifestFileName
The file name of manifest file written as the zip archive. |
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
ZipWriter(Collection cids,
File file,
String basepath,
JProgressBar progress)
Constructor provided a list of database Collection IDs, and the base of the zip file name basepath (eg., "archive-20020801", which should not include the ".zip" file extension, as it will be added here. |
|
| Method Summary | |
|---|---|
Collection |
getManifestList(Collection cids)
This establishes the DOM Document containing the manifest of this archive. |
void |
run()
Begins the archiving process. |
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String manifestFileName
public static int compressionLevel
Deflater.NO_COMPRESSION,
Deflater.BEST_SPEED,
Deflater.BEST_COMPRESSION,
Deflater.DEFAULT_COMPRESSION| Constructor Detail |
|---|
public ZipWriter(Collection cids,
File file,
String basepath,
JProgressBar progress)
| Method Detail |
|---|
public void run()
run in interface Runnablerun in class Thread
public Collection getManifestList(Collection cids)
throws ZipException
Returns a Collection containing the XNodeIDs of all XNodes in the Collection cids, itself containing the IDs of the database XNodeCollections as Strings. Order will be as the Collection and Node-within-Collection iterators return their contents. If empty, returns an empty Vector.
cids - contains the Collection ID of the query.
ZipExceptionXNodeID
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||