Liferay 6.1.2-ce-ga3

com.liferay.portal.zip
Class ZipWriterImpl

java.lang.Object
  extended by com.liferay.portal.zip.ZipWriterImpl
All Implemented Interfaces:
ZipWriter

public class ZipWriterImpl
extends Object
implements ZipWriter


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

Constructor Detail

ZipWriterImpl

public ZipWriterImpl()

ZipWriterImpl

public ZipWriterImpl(File file)
Method Detail

addEntry

public void addEntry(String name,
                     byte[] bytes)
              throws IOException
Specified by:
addEntry in interface ZipWriter
Throws:
IOException

addEntry

public void addEntry(String name,
                     InputStream inputStream)
              throws IOException
Specified by:
addEntry in interface ZipWriter
Throws:
IOException

addEntry

public void addEntry(String name,
                     String s)
              throws IOException
Specified by:
addEntry in interface ZipWriter
Throws:
IOException

addEntry

public void addEntry(String name,
                     StringBuilder sb)
              throws IOException
Specified by:
addEntry in interface ZipWriter
Throws:
IOException

finish

public byte[] finish()
              throws IOException
Specified by:
finish in interface ZipWriter
Throws:
IOException

getFile

public File getFile()
Specified by:
getFile in interface ZipWriter

getPath

public String getPath()
Specified by:
getPath in interface ZipWriter

Liferay 6.1.2-ce-ga3