Liferay 6.1.2-ce-ga3

com.liferay.portal.zip
Class ZipReaderImpl

java.lang.Object
  extended by com.liferay.portal.zip.ZipReaderImpl
All Implemented Interfaces:
ZipReader

public class ZipReaderImpl
extends Object
implements ZipReader


Constructor Summary
ZipReaderImpl(File file)
           
ZipReaderImpl(InputStream inputStream)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZipReaderImpl

public ZipReaderImpl(InputStream inputStream)
              throws IOException
Throws:
IOException

ZipReaderImpl

public ZipReaderImpl(File file)
Method Detail

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)

Liferay 6.1.2-ce-ga3