|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.experiment.OutputZipper
public class OutputZipper
OutputZipper writes output to either gzipped files or to a multi entry zip file. If the destination file is a directory each output string will be written to an individually named gzip file. If the destination file is a file, then each output string is appended as a named entry to the zip file until finished() is called to close the file.
| Constructor Summary | |
|---|---|
OutputZipper(File destination)
Constructor. |
|
| Method Summary | |
|---|---|
void |
finished()
Closes the zip file. |
String |
getRevision()
Returns the revision string. |
static void |
main(String[] args)
Main method for testing this class |
void |
zipit(String outString,
String name)
Saves a string to either an individual gzipped file or as an entry in a zip file. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OutputZipper(File destination)
throws Exception
destination - a destination file or directory
Exception - if something goes wrong.| Method Detail |
|---|
public void zipit(String outString,
String name)
throws Exception
outString - the output string to savename - the name of the file/entry to save it to
Exception - if something goes wrong
public void finished()
throws Exception
Exception - if something goes wrongpublic String getRevision()
getRevision in interface RevisionHandlerpublic static void main(String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||