Package proguard.io
Class NamedDataEntry
java.lang.Object
proguard.io.NamedDataEntry
- All Implemented Interfaces:
DataEntry
This
DataEntry represents a named output entry with a parent.-
Constructor Summary
ConstructorsConstructorDescriptionNamedDataEntry(DataEntry parent, String name, long size, boolean isDirectory) -
Method Summary
Modifier and TypeMethodDescriptionvoidCloses the previously retrieved InputStream.Returns an input stream for reading the content of this data entry.getName()Returns the name of this data entry.Returns the original name of this data entry, i.e.Returns the parent of this data entry, ornull if it doesn't have one.longgetSize()Returns the size of this data entry, in bytes, or -1 if unknown.booleanReturns whether the data entry represents a directory.toString()
-
Constructor Details
-
NamedDataEntry
-
-
Method Details
-
getName
Description copied from interface:DataEntryReturns the name of this data entry. -
getOriginalName
Description copied from interface:DataEntryReturns the original name of this data entry, i.e. the name of the data entry before any renaming or obfuscation.- Specified by:
getOriginalNamein interfaceDataEntry
-
getSize
public long getSize()Description copied from interface:DataEntryReturns the size of this data entry, in bytes, or -1 if unknown. -
isDirectory
public boolean isDirectory()Description copied from interface:DataEntryReturns whether the data entry represents a directory.- Specified by:
isDirectoryin interfaceDataEntry
-
getInputStream
Description copied from interface:DataEntryReturns an input stream for reading the content of this data entry. The data entry may not represent a directory.- Specified by:
getInputStreamin interfaceDataEntry- Throws:
IOException
-
closeInputStream
Description copied from interface:DataEntryCloses the previously retrieved InputStream.- Specified by:
closeInputStreamin interfaceDataEntry- Throws:
IOException
-
getParent
Description copied from interface:DataEntryReturns the parent of this data entry, ornull if it doesn't have one. -
toString
-