|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--net.larsan.urd.util.fileset.ResourceBase
|
+--net.larsan.urd.util.fileset.FileResource
A single file resource.
| Field Summary |
| Fields inherited from class net.larsan.urd.util.fileset.ResourceBase |
errorHandler, filePath, size, visited |
| Constructor Summary | |
FileResource(java.io.File root,
java.lang.String filePath,
java.io.File file)
|
|
FileResource(java.io.File root,
java.lang.String filePath,
java.io.File file,
long visited,
ErrorHandler errorHandler)
|
|
| Method Summary | |
boolean |
exists()
Check if the resource is valid. |
byte[] |
getBytes()
Get a byte array from the file. |
java.security.cert.Certificate[] |
getCertificates()
Get resource Certificates if the resource have been signed. |
java.net.URL |
getCodeSource()
Get code source. |
java.io.InputStream |
getStream()
Get a byte stream from the file. |
java.net.URL |
getURL()
Get a URL to the resource. |
| Methods inherited from class net.larsan.urd.util.fileset.ResourceBase |
equals, getErrorHandler, getFileSize, getPath, getVisitedTime, hashCode, report, setErrorHandler |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FileResource(java.io.File root,
java.lang.String filePath,
java.io.File file,
long visited,
ErrorHandler errorHandler)
public FileResource(java.io.File root,
java.lang.String filePath,
java.io.File file)
| Method Detail |
public java.io.InputStream getStream()
getStream in interface ResourcegetStream in class ResourceBasepublic byte[] getBytes()
getBytes in interface ResourcegetBytes in class ResourceBasepublic java.net.URL getURL()
getURL in interface ResourcegetURL in class ResourceBasepublic java.net.URL getCodeSource()
public java.security.cert.Certificate[] getCertificates()
getCertificates in interface ResourcegetCertificates in class ResourceBasepublic boolean exists()
exists in class ResourceBase
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||