| Constructor and Description |
|---|
FileDataEntry(File directory,
File file) |
| Modifier and Type | Method and Description |
|---|---|
void |
closeInputStream()
Closes the previously retrieved InputStream.
|
File |
getFile()
Returns the complete file, including its directory.
|
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() |
public File getFile()
public 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 void closeInputStream()
throws IOException
DataEntrycloseInputStream in interface DataEntryIOExceptionpublic DataEntry getParent()
DataEntrynull if it doesn't
have one.Copyright © 2019. All rights reserved.