com.liferay.portal.zip
Class ZipReaderImpl
java.lang.Object
com.liferay.portal.zip.ZipReaderImpl
- All Implemented Interfaces:
- ZipReader
public class ZipReaderImpl
- extends Object
- implements ZipReader
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ZipReaderImpl
public ZipReaderImpl(InputStream inputStream)
throws IOException
- Throws:
IOException
ZipReaderImpl
public ZipReaderImpl(File file)
close
public void close()
- Specified by:
close
in interface ZipReader
getEntries
public List<String> getEntries()
- Specified by:
getEntries
in interface ZipReader
getEntryAsByteArray
public byte[] getEntryAsByteArray(String name)
- Specified by:
getEntryAsByteArray
in interface ZipReader
getEntryAsInputStream
public InputStream getEntryAsInputStream(String name)
- Specified by:
getEntryAsInputStream
in interface ZipReader
getEntryAsString
public String getEntryAsString(String name)
- Specified by:
getEntryAsString
in interface ZipReader
getFolderEntries
public List<String> getFolderEntries(String path)
- Specified by:
getFolderEntries
in interface ZipReader
processDirectory
protected void processDirectory(de.schlichtherle.io.File directory,
List<String> folderEntries)