| |
|
| java.lang.Object weka.experiment.OutputZipper
OutputZipper | public class OutputZipper (Code) | | 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.
author: Mark Hall (mhall@cs.waikato.ac.nz) version: $Revision: 1.7 $ |
Method Summary | |
public void | finished() Closes the zip file. | public static void | main(String[] args) | public void | zipit(String outString, String name) Saves a string to either an individual gzipped file or as
an entry in a zip file. |
OutputZipper | public OutputZipper(File destination) throws Exception(Code) | | Constructor.
Parameters: destination - a destination file or directory throws: Exception - if something goes wrong. |
main | public static void main(String[] args)(Code) | | Main method for testing this class
|
zipit | public void zipit(String outString, String name) throws Exception(Code) | | Saves a string to either an individual gzipped file or as
an entry in a zip file.
Parameters: outString - the output string to save Parameters: name - the name of the file/entry to save it to throws: Exception - if something goes wrong |
|
|
|