public class ZipReaderImpl
extends Object
implements com.liferay.portal.kernel.zip.ZipReader
Constructor and Description |
---|
ZipReaderImpl(File file) |
ZipReaderImpl(InputStream inputStream) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
List<String> |
getEntries() |
byte[] |
getEntryAsByteArray(String name) |
InputStream |
getEntryAsInputStream(String name) |
String |
getEntryAsString(String name) |
List<String> |
getFolderEntries(String path) |
protected void |
processDirectory(de.schlichtherle.io.File directory,
List<String> folderEntries) |
public ZipReaderImpl(InputStream inputStream) throws IOException
IOException
public ZipReaderImpl(File file)
public void close()
close
in interface com.liferay.portal.kernel.zip.ZipReader
public List<String> getEntries()
getEntries
in interface com.liferay.portal.kernel.zip.ZipReader
public byte[] getEntryAsByteArray(String name)
getEntryAsByteArray
in interface com.liferay.portal.kernel.zip.ZipReader
public InputStream getEntryAsInputStream(String name)
getEntryAsInputStream
in interface com.liferay.portal.kernel.zip.ZipReader
public String getEntryAsString(String name)
getEntryAsString
in interface com.liferay.portal.kernel.zip.ZipReader
public List<String> getFolderEntries(String path)
getFolderEntries
in interface com.liferay.portal.kernel.zip.ZipReader
protected void processDirectory(de.schlichtherle.io.File directory, List<String> folderEntries)