public final class ResourceLoader extends Object
Modifier and Type | Field and Description |
---|---|
private List<Path> |
configuredSourcePaths |
private String |
defaultRelPackagePath |
Constructor and Description |
---|
ResourceLoader(String sourcePathOption,
String defaultRelPackagePath) |
Modifier and Type | Method and Description |
---|---|
private static void |
addIfExist(Collection<Path> result,
Path path) |
private static List<Path> |
getConfiguredSourcePaths(String sourcePathOption,
String defaultRelPackagePath) |
URI |
getFileResourceAsURL(String fileName) |
String |
getResourceAsText(String fileName) |
boolean |
hasSourcePaths() |
String |
toString() |
private final String defaultRelPackagePath
public ResourceLoader(String sourcePathOption, String defaultRelPackagePath) throws ConfigurationException
ConfigurationException
private static List<Path> getConfiguredSourcePaths(String sourcePathOption, String defaultRelPackagePath) throws ConfigurationException
ConfigurationException
private static void addIfExist(Collection<Path> result, Path path)
public boolean hasSourcePaths()
public String getResourceAsText(String fileName) throws Exception
Exception
public URI getFileResourceAsURL(String fileName) throws Exception
Exception
Version 2.0.0 generated on 2014-11-22 at 09:45 - (C) 41concepts Aps. Refer to project homepage valjogen.41concepts.com for more information.