com.liferay.portal.kernel.zip
Class ZipWriter

java.lang.Object
  extended by com.liferay.portal.kernel.zip.ZipWriter
All Implemented Interfaces:
java.io.Serializable

public class ZipWriter
extends java.lang.Object
implements java.io.Serializable

View Source

Author:
Brian Wing Shun Chan
See Also:
Serialized Form

Constructor Summary
ZipWriter()
           
 
Method Summary
 void addEntry(java.lang.String name, byte[] bytes)
           
 void addEntry(java.lang.String name, java.lang.String s)
           
 void addEntry(java.lang.String name, java.lang.StringBuilder sb)
           
 byte[] finish()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZipWriter

public ZipWriter()
Method Detail

addEntry

public void addEntry(java.lang.String name,
                     java.lang.StringBuilder sb)
              throws java.io.IOException
Throws:
java.io.IOException

addEntry

public void addEntry(java.lang.String name,
                     java.lang.String s)
              throws java.io.IOException
Throws:
java.io.IOException

addEntry

public void addEntry(java.lang.String name,
                     byte[] bytes)
              throws java.io.IOException
Throws:
java.io.IOException

finish

public byte[] finish()
              throws java.io.IOException
Throws:
java.io.IOException