All Packages  Class Hierarchy  This Package  Previous  Next  Index  WEKA's home

Class weka.experiment.OutputZipper

java.lang.Object
   |
   +----weka.experiment.OutputZipper

public class OutputZipper
extends Object
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)

Constructor Index

 o OutputZipper(File)
Constructor.

Method Index

 o finished()
Closes the zip file.
 o main(String[])
Main method for testing this class
 o zipit(String, String)
Saves a string to either an individual gzipped file or as an entry in a zip file.

Constructors

 o OutputZipper
 public OutputZipper(File destination) throws Exception
Constructor.

Parameters:
a - destination file or directory
Throws: Exception
if something goes wrong.

Methods

 o zipit
 public void zipit(String outString,
                   String name) throws Exception
Saves a string to either an individual gzipped file or as an entry in a zip file.

Parameters:
outString - the output string to save
the - name of the file/entry to save it to
Throws: Exception
if something goes wrong
 o finished
 public void finished() throws Exception
Closes the zip file.

Throws: Exception
if something goes wrong
 o main
 public static void main(String args[])
Main method for testing this class


All Packages  Class Hierarchy  This Package  Previous  Next  Index  WEKA's home