proguard.io
Interface DataEntry

All Known Implementing Classes:
FileDataEntry, RenamedDataEntry, ZipDataEntry

public interface DataEntry

This interface describes a data entry, e.g. a ZIP entry, a file, or a directory.


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.
 

Method Detail

getName

java.lang.String getName()
Returns the name of this data entry.


isDirectory

boolean isDirectory()
Returns whether the data entry represents a directory.


getInputStream

java.io.InputStream getInputStream()
                                   throws java.io.IOException
Returns an input stream for reading the content of this data entry. The data entry may not represent a directory.

Throws:
java.io.IOException

closeInputStream

void closeInputStream()
                      throws java.io.IOException
Closes the previously retrieved InputStream.

Throws:
java.io.IOException

getParent

DataEntry getParent()
Returns the parent of this data entry, or null if it doesn't have one.