public final class ResourceMap extends Object
| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
LOG
The logger.
|
private static String |
SCHEMA_RESOURCE_LOCATION
the system property which can be used to load schema from a user specified
resource like a absolute path to a directory or jar file.
|
| Modifier | Constructor and Description |
|---|---|
private |
ResourceMap()
Private constructor.
|
| Modifier and Type | Method and Description |
|---|---|
private static void |
getResources(HashMap<String,Boolean> map,
String element,
Pattern pattern) |
static Map<String,Boolean> |
getResources(Pattern pattern)
For all elements of java.class.path OR from the resource name set in the
system property 'schema.resource.location' get a Map of resources
Pattern pattern = Pattern.compile(".*").
|
private static void |
getResourcesFromClassloader(HashMap<String,Boolean> map,
Pattern pattern) |
private static void |
getResourcesFromDirectory(HashMap<String,Boolean> map,
File directory,
Pattern pattern) |
private static void |
getResourcesFromJarFile(HashMap<String,Boolean> map,
File file,
Pattern pattern) |
private static final String SCHEMA_RESOURCE_LOCATION
private static final org.slf4j.Logger LOG
public static Map<String,Boolean> getResources(Pattern pattern)
pattern - the pattern to matchprivate static void getResources(HashMap<String,Boolean> map, String element, Pattern pattern)
private static void getResourcesFromJarFile(HashMap<String,Boolean> map, File file, Pattern pattern)
private static void getResourcesFromDirectory(HashMap<String,Boolean> map, File directory, Pattern pattern)
Copyright © 2003–2019 The Apache Software Foundation. All rights reserved.