| Constructor and Description |
|---|
URLResource(URL url) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBytes()
Returns the binary representation of the class file.
|
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 URLResource(URL url)
public URL toURL()
Resourcepublic 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.