|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weka.experiment.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(java.io.File destination)
Constructor. |
Method Summary | |
void |
finished()
Closes the zip file. |
static void |
main(java.lang.String[] args)
Main method for testing this class |
void |
zipit(java.lang.String outString,
java.lang.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(java.io.File destination) throws java.lang.Exception
java.lang.Exception
- if something goes wrong.Method Detail |
public void zipit(java.lang.String outString, java.lang.String name) throws java.lang.Exception
outString
- the output string to save
java.lang.Exception
- if something goes wrongpublic void finished() throws java.lang.Exception
java.lang.Exception
- if something goes wrongpublic static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) 2003 David Lindsay, Computer Learning Research Centre, Dept. Computer Science, Royal Holloway, University of London