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 ResourceContent
public long lastModified()
lastModified
in interface ResourceContent
public long size()
size
in interface ResourceContent
public InputStream getInputStream() throws IOException
getInputStream
in interface ResourceContent
IOException
Copyright © 2015. All Rights Reserved.