com.liferay.portal.zip
Class ZipWriterImpl
java.lang.Object
com.liferay.portal.zip.ZipWriterImpl
- All Implemented Interfaces:
- com.liferay.portal.kernel.zip.ZipWriter
public class ZipWriterImpl
- extends Object
- implements com.liferay.portal.kernel.zip.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 com.liferay.portal.kernel.zip.ZipWriter
- Throws:
IOException
addEntry
public void addEntry(String name,
InputStream inputStream)
throws IOException
- Specified by:
addEntry in interface com.liferay.portal.kernel.zip.ZipWriter
- Throws:
IOException
addEntry
public void addEntry(String name,
String s)
throws IOException
- Specified by:
addEntry in interface com.liferay.portal.kernel.zip.ZipWriter
- Throws:
IOException
addEntry
public void addEntry(String name,
StringBuilder sb)
throws IOException
- Specified by:
addEntry in interface com.liferay.portal.kernel.zip.ZipWriter
- Throws:
IOException
finish
public byte[] finish()
throws IOException
- Specified by:
finish in interface com.liferay.portal.kernel.zip.ZipWriter
- Throws:
IOException
getFile
public File getFile()
- Specified by:
getFile in interface com.liferay.portal.kernel.zip.ZipWriter
getPath
public String getPath()
- Specified by:
getPath in interface com.liferay.portal.kernel.zip.ZipWriter