Package proguard.io
Class DummyDataEntry
java.lang.Object
proguard.io.DummyDataEntry
- All Implemented Interfaces:
DataEntry
This
DataEntry represents a named output entry that doesn't return an input stream. It is
mostly useful for testing data entry writers, explicitly creating and using output streams.-
Constructor Summary
ConstructorsConstructorDescriptionDummyDataEntry(DataEntry parent, String name, long size, boolean isDirectory) Creates a new NamedDataEntry with the given name, parent, and size. -
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
-
DummyDataEntry
Creates a new NamedDataEntry with the given name, parent, and size.
-
-
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
-