Class FileResource
java.lang.Object
org.zeroturnaround.javarebel.support.FileResource
- All Implemented Interfaces:
Resource
A file system resource.
- Author:
- Jevgeni Kabanov (ekabanov@zeroturnaround.com)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]getBytes()Returns the binary representation of the class file.getFile()longReturns a millisecond representation of last modified time comparable withSystem.currentTimeMillis().toString()toURL()Returns the URL that class is loaded from.
-
Constructor Details
-
FileResource
-
FileResource
-
-
Method Details
-
getFile
-
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
-
toString
-
toURL
Description copied from interface:ResourceReturns the URL that class is loaded from.
-