Class URLResource
java.lang.Object
org.zeroturnaround.javarebel.support.URLResource
- All Implemented Interfaces:
Resource
A URL based resource.
- Author:
- Jevgeni Kabanov (ekabanov@zeroturnaround.com), Rein Raudjärv
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]getBytes()Returns the binary representation of the class file.longReturns a millisecond representation of last modified time comparable withSystem.currentTimeMillis().toString()toURL()Returns the URL that class is loaded from.
-
Constructor Details
-
URLResource
-
-
Method Details
-
toURL
Description copied from interface:ResourceReturns the URL that class is loaded from. -
toString
-
getBytes
public byte[] getBytes()Description copied from interface:ResourceReturns the binary representation of the class file. Returnsnullif the resource is missing or cannot be read. -
lastModified
public long lastModified()Description copied from interface:ResourceReturns a millisecond representation of last modified time comparable withSystem.currentTimeMillis(). Returns0Lif the resource is missing or cannot be read.- Specified by:
lastModifiedin interfaceResource
-