Class FileResource
- java.lang.Object
-
- org.zeroturnaround.javarebel.support.FileResource
-
-
Constructor Summary
Constructors Constructor Description FileResource(File file)FileResource(URL url)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getBytes()Returns the binary representation of the class file.FilegetFile()longlastModified()Returns a millisecond representation of last modified time comparable withSystem.currentTimeMillis().StringtoString()URLtoURL()Returns the URL that class is loaded from.
-
-
-
Method Detail
-
getFile
public File 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
-
-