| Constructor and Description |
|---|
FileResource(File file) |
FileResource(URL url) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBytes()
Returns the binary representation of the class file.
|
File |
getFile() |
long |
lastModified()
Returns a millisecond representation of last modified time comparable with
System.currentTimeMillis(). |
String |
toString() |
URL |
toURL()
Returns the URL that class is loaded from.
|
public FileResource(File file)
public FileResource(URL url)
public File getFile()
public byte[] getBytes()
Resourcenull if the resource is missing or cannot be read.public long lastModified()
ResourceSystem.currentTimeMillis().
Returns 0L if the resource is missing or cannot be read.lastModified in interface ResourceCopyright © 2014. All rights reserved.