public class FileResourceContent extends Object implements ResourceContent
| Constructor and Description |
|---|
FileResourceContent(File file,
String entryName)
Create with a File and the entryName.
|
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getInputStream()
Return the input stream for this file.
|
String |
getName()
Returns the entry name which contains the path from the base directory.
|
long |
lastModified()
Return the time the file was last modified.
|
long |
size()
Return the size of the file.
|
String |
toString() |
public String getName()
This does not return the full path of the file, but the path relative to the FileIoSource directory.
getName in interface ResourceContentpublic long lastModified()
lastModified in interface ResourceContentpublic long size()
size in interface ResourceContentpublic InputStream getInputStream() throws IOException
getInputStream in interface ResourceContentIOExceptionCopyright © 2014. All Rights Reserved.