|
||||||||||
| 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.JarFileSet.JarResource
Inner class for a resource within a jar archive.
| Field Summary |
| Fields inherited from class net.larsan.urd.util.fileset.ResourceBase |
errorHandler, filePath, size, visited |
| Constructor Summary | |
JarFileSet.JarResource(java.io.File file,
java.util.jar.JarFile jarFile,
java.lang.String filePath)
Contruct the resource with a jar file, and a path (within the archive). |
|
JarFileSet.JarResource(java.io.File file,
java.util.jar.JarFile jarFile,
java.lang.String filePath,
long visited,
ErrorHandler handler)
Contruct the resource with a jar file, a path (within the archive) and a time when it was visited. |
|
| Method Summary | |
void |
destroy()
Destroy this resource. |
boolean |
exists()
Check if the resource is valid. |
byte[] |
getBytes()
Get a byte array from the file. |
java.security.cert.Certificate[] |
getCertificates()
Get certificates for this entry. |
java.net.URL |
getCodeSource()
Get the 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 JarFileSet.JarResource(java.io.File file,
java.util.jar.JarFile jarFile,
java.lang.String filePath,
long visited,
ErrorHandler handler)
file - JAR archive filejarFile - Jar file objectfilePath - File path within archivevisited - Time of file scan
public JarFileSet.JarResource(java.io.File file,
java.util.jar.JarFile jarFile,
java.lang.String filePath)
file - JAR archive filejarFile - Jar file objectfilePath - File path within archive| Method Detail |
public void destroy()
public java.io.InputStream getStream()
getStream in interface ResourcegetStream in class ResourceBasejava.io.IOException - On IO errorspublic byte[] getBytes()
getBytes in interface ResourcegetBytes in class ResourceBasejava.io.IOException - On IO errorspublic java.net.URL getURL()
getURL in interface ResourcegetURL in class ResourceBasepublic java.net.URL getCodeSource()
getCodeSource in interface Resourcepublic boolean exists()
exists in class ResourceBasepublic java.security.cert.Certificate[] getCertificates()
getCertificates in interface CertifiablegetCertificates in class ResourceBase
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||