proguard.io
Class ZipDataEntry

java.lang.Object
  extended by proguard.io.ZipDataEntry
All Implemented Interfaces:
DataEntry

public class ZipDataEntry
extends java.lang.Object
implements DataEntry

This DataEntry represents a ZIP entry.


Constructor Summary
ZipDataEntry(DataEntry parent, java.util.zip.ZipEntry zipEntry, java.util.zip.ZipInputStream zipInputStream)
           
 
Method Summary
 void closeInputStream()
          Closes the previously retrieved InputStream.
 java.io.InputStream getInputStream()
          Returns an input stream for reading the content of this data entry.
 java.lang.String getName()
          Returns the name of this data entry.
 DataEntry getParent()
          Returns the parent of this data entry, or null if it doesn't have one.
 boolean isDirectory()
          Returns whether the data entry represents a directory.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ZipDataEntry

public ZipDataEntry(DataEntry parent,
                    java.util.zip.ZipEntry zipEntry,
                    java.util.zip.ZipInputStream zipInputStream)
Method Detail

getName

public java.lang.String getName()
Description copied from interface: DataEntry
Returns the name of this data entry.

Specified by:
getName in interface DataEntry

isDirectory

public boolean isDirectory()
Description copied from interface: DataEntry
Returns whether the data entry represents a directory.

Specified by:
isDirectory in interface DataEntry

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Description copied from interface: DataEntry
Returns an input stream for reading the content of this data entry. The data entry may not represent a directory.

Specified by:
getInputStream in interface DataEntry
Throws:
java.io.IOException

closeInputStream

public void closeInputStream()
                      throws java.io.IOException
Description copied from interface: DataEntry
Closes the previously retrieved InputStream.

Specified by:
closeInputStream in interface DataEntry
Throws:
java.io.IOException

getParent

public DataEntry getParent()
Description copied from interface: DataEntry
Returns the parent of this data entry, or null if it doesn't have one.

Specified by:
getParent in interface DataEntry

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object