public class OutputZipper extends java.lang.Object implements RevisionHandler
Constructor and Description |
---|
OutputZipper(java.io.File destination)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
finished()
Closes the zip file.
|
java.lang.String |
getRevision()
Returns the revision string.
|
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.
|
public OutputZipper(java.io.File destination) throws java.lang.Exception
destination
- a destination file or directoryjava.lang.Exception
- if something goes wrong.public void zipit(java.lang.String outString, java.lang.String name) throws java.lang.Exception
outString
- the output string to savename
- the name of the file/entry to save it tojava.lang.Exception
- if something goes wrongpublic void finished() throws java.lang.Exception
java.lang.Exception
- if something goes wrongpublic java.lang.String getRevision()
getRevision
in interface RevisionHandler
public static void main(java.lang.String[] args)