public class RenamedDataEntry extends WrappedDataEntry
DataEntry
wraps another data entry, returning a different name instead of the
wrapped data entry's name.wrappedEntry
Constructor and Description |
---|
RenamedDataEntry(DataEntry dataEntry,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Returns the name of this data entry.
|
java.lang.String |
toString() |
closeInputStream, getInputStream, getOriginalName, getParent, getSize, isDirectory
public RenamedDataEntry(DataEntry dataEntry, java.lang.String name)
public java.lang.String getName()
DataEntry
getName
in interface DataEntry
getName
in class WrappedDataEntry
public java.lang.String toString()
toString
in class WrappedDataEntry