public class OutputZipper extends Object implements RevisionHandler
| Constructor and Description |
|---|
OutputZipper(File destination)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public void zipit(String outString, String name) throws Exception
outString - the output string to savename - the name of the file/entry to save it toException - if something goes wrongpublic void finished()
throws Exception
Exception - if something goes wrongpublic String getRevision()
getRevision in interface RevisionHandlerpublic static void main(String[] args)
Copyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.