public class WrappedDataEntry extends Object implements DataEntry
| Modifier and Type | Field and Description |
|---|---|
protected DataEntry |
wrappedEntry |
| Constructor and Description |
|---|
WrappedDataEntry(DataEntry wrappedEntry) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
String |
getOriginalName()
Returns the original name of this data entry, i.e.
|
DataEntry |
getParent()
Returns the parent of this data entry, or
null if it doesn't
have one. |
long |
getSize()
Returns the size of this data entry, in bytes, or -1 if unknown.
|
boolean |
isDirectory()
Returns whether the data entry represents a directory.
|
String |
toString() |
protected final DataEntry wrappedEntry
public WrappedDataEntry(DataEntry wrappedEntry)
public void closeInputStream()
throws IOException
DataEntrycloseInputStream in interface DataEntryIOExceptionpublic String getName()
DataEntrypublic String getOriginalName()
DataEntrygetOriginalName in interface DataEntrypublic long getSize()
DataEntrypublic boolean isDirectory()
DataEntryisDirectory in interface DataEntrypublic InputStream getInputStream() throws IOException
DataEntrygetInputStream in interface DataEntryIOExceptionpublic DataEntry getParent()
DataEntrynull if it doesn't
have one.Copyright © 2019. All rights reserved.