ProGuard

proguard.io
Class FileDataEntry

java.lang.Object
  extended byproguard.io.FileDataEntry
All Implemented Interfaces:
DataEntry

public class FileDataEntry
extends Object
implements DataEntry

This DataEntry represents a file.


Constructor Summary
FileDataEntry(File directory, File file)
           
 
Method Summary
 void closeInputStream()
          Closes the previously retrieved InputStream.
 InputStream getInputStream()
          Returns an input stream for reading the content of this data entry.
 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.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileDataEntry

public FileDataEntry(File directory,
                     File file)
Method Detail

getName

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

Specified by:
getName in interface DataEntry

getInputStream

public InputStream getInputStream()
                           throws IOException
Description copied from interface: DataEntry
Returns an input stream for reading the content of this data entry.

Specified by:
getInputStream in interface DataEntry
Throws:
IOException

closeInputStream

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

Specified by:
closeInputStream in interface DataEntry
Throws:
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 String toString()

ProGuard