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 java.lang.Object
- implements com.liferay.portal.kernel.zip.ZipWriter
View Source
- Author:
- Raymond Augé
Method Summary |
void |
addEntry(java.lang.String name,
byte[] bytes)
|
void |
addEntry(java.lang.String name,
java.io.InputStream inpuStream)
|
void |
addEntry(java.lang.String name,
java.lang.String s)
|
void |
addEntry(java.lang.String name,
java.lang.StringBuilder sb)
|
byte[] |
finish()
|
java.io.File |
getFile()
|
java.lang.String |
getPath()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ZipWriterImpl
public ZipWriterImpl()
ZipWriterImpl
public ZipWriterImpl(java.io.File file)
addEntry
public void addEntry(java.lang.String name,
byte[] bytes)
throws java.io.IOException
- Specified by:
addEntry
in interface com.liferay.portal.kernel.zip.ZipWriter
- Throws:
java.io.IOException
addEntry
public void addEntry(java.lang.String name,
java.io.InputStream inpuStream)
throws java.io.IOException
- Specified by:
addEntry
in interface com.liferay.portal.kernel.zip.ZipWriter
- Throws:
java.io.IOException
addEntry
public void addEntry(java.lang.String name,
java.lang.String s)
throws java.io.IOException
- Specified by:
addEntry
in interface com.liferay.portal.kernel.zip.ZipWriter
- Throws:
java.io.IOException
addEntry
public void addEntry(java.lang.String name,
java.lang.StringBuilder sb)
throws java.io.IOException
- Specified by:
addEntry
in interface com.liferay.portal.kernel.zip.ZipWriter
- Throws:
java.io.IOException
finish
public byte[] finish()
throws java.io.IOException
- Specified by:
finish
in interface com.liferay.portal.kernel.zip.ZipWriter
- Throws:
java.io.IOException
getFile
public java.io.File getFile()
- Specified by:
getFile
in interface com.liferay.portal.kernel.zip.ZipWriter
getPath
public java.lang.String getPath()
- Specified by:
getPath
in interface com.liferay.portal.kernel.zip.ZipWriter