public static class ResourceScanListener.ScanResource extends Object
| Modifier and Type | Field and Description |
|---|---|
JarEntry |
entry
The JarEntry if this resource came from a jar
|
File |
file
The File if this resource came from a directory
|
URL |
offsetUrl
The URL of the offset within the jar URL (null if a plain jar or directory)
|
String |
resourceName
The resource's / separated path name within the "url" field.
|
URL |
url
The URL of the directory or jar file
|
| Constructor and Description |
|---|
ResourceScanListener.ScanResource(URL url,
File file,
String resourceName) |
ResourceScanListener.ScanResource(URL url,
JarEntry entry,
String resourceName,
URL offsetUrl) |
| Modifier and Type | Method and Description |
|---|---|
URL |
getResolvedUrl()
Figures out what the fully resolved url of this file is.
|
URL |
newOffset(String offset)
Tries to give you a new offset based on this offsetUrl.
|
public final URL url
public final URL offsetUrl
public final JarEntry entry
public final File file
public final String resourceName
public ResourceScanListener.ScanResource(URL url, JarEntry entry, String resourceName, URL offsetUrl)
public URL getResolvedUrl()
public URL newOffset(String offset)
offset - - the offset you want to add to the offsetUrlCopyright © 2014. All Rights Reserved.