Package org.zeroturnaround.javarebel
Interface Resource
-
- All Known Implementing Classes:
FileResource,URLResource
public interface ResourceRepresents an abstract resource that can be monitored for changes and is tied to a particular URL.- Author:
- Jevgeni Kabanov (ekabanov@zeroturnaround.com)
- See Also:
ResourceSource,ClassResourceSource,FileResource,URLResource
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]getBytes()Returns the binary representation of the class file.longlastModified()Returns a millisecond representation of last modified time comparable withSystem.currentTimeMillis().URLtoURL()Returns the URL that class is loaded from.
-
-
-
Method Detail
-
getBytes
byte[] getBytes()
Returns the binary representation of the class file. Returnsnullif the resource is missing or cannot be read.
-
lastModified
long lastModified()
Returns a millisecond representation of last modified time comparable withSystem.currentTimeMillis(). Returns0Lif the resource is missing or cannot be read.
-
toURL
URL toURL()
Returns the URL that class is loaded from.
-
-