com.liferay.portal.zip
Class ZipWriterImpl
java.lang.Object
com.liferay.portal.zip.ZipWriterImpl
- All Implemented Interfaces:
- ZipWriter
public class ZipWriterImpl
- extends Object
- implements ZipWriter
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ZipWriterImpl
public ZipWriterImpl()
ZipWriterImpl
public ZipWriterImpl(File file)
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 inpuStream)
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