com.generationjava.io
Class ZipW

java.lang.Object
  |
  +--com.generationjava.io.ZipW

public final class ZipW
extends java.lang.Object

Makes creating Zip files easier.


Constructor Summary
ZipW(java.io.OutputStream out)
          Provide the OutputStream that this Zip will be written to.
 
Method Summary
 boolean addFile(java.lang.String filename, java.lang.String contents)
          Add the passed in String data to the Zip under the specified filename.
 void close()
          Close the zip file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZipW

public ZipW(java.io.OutputStream out)
Provide the OutputStream that this Zip will be written to.

Method Detail

addFile

public boolean addFile(java.lang.String filename,
                       java.lang.String contents)
Add the passed in String data to the Zip under the specified filename.


close

public void close()
Close the zip file.



Copyright © 2000-2003 OSJava. All Rights Reserved.