|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.esa.beam.util.ResourceScanner
public class ResourceScanner
This scanner can be used to retrieve resources, e.g. auxillary data. The scanner searches for all resources in the given locations.
| Constructor Summary | |
|---|---|
ResourceScanner(URL[] locations,
String relPath)
Creates an instance of this class with the given locations. |
|
| Method Summary | |
|---|---|
String |
getRelativePath(URL resourceURL)
Returns the relative path of the given resource url |
URL |
getResource(String relPath)
Gets the resource with the given relative path. |
URL[] |
getResourcesByPattern(String patternString)
Retrieves all resource matching the given pattern. |
void |
scan(com.bc.ceres.core.ProgressMonitor pm)
Scans recursivley for resources in the location given by the constructor. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceScanner(URL[] locations,
String relPath)
locations - the locations used for scanningrelPath - | Method Detail |
|---|
public void scan(com.bc.ceres.core.ProgressMonitor pm)
public URL getResource(String relPath)
relPath - the relative path to the resource.
null if no resource was found.public String getRelativePath(URL resourceURL)
resourceURL -
nullpublic URL[] getResourcesByPattern(String patternString)
Pattern.
patternString - the pattern given as a regular expression
null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||