public interface Resource
ResourceSource,
ClassResourceSource,
FileResource,
URLResource| 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(). |
URL |
toURL()
Returns the URL that class is loaded from.
|
byte[] getBytes()
null if the resource is missing or cannot be read.long lastModified()
System.currentTimeMillis().
Returns 0L if the resource is missing or cannot be read.URL toURL()
Copyright © 2015. All rights reserved.