public class ConfigUtils extends Object
Constructor and Description |
---|
ConfigUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
getBooleanProperty(Properties config,
String key,
boolean defaultValue)
Read a boolean property.
|
static InputStream |
getResourceAsStream(String resource)
Resource locator helper
http://www.thinkplexx.com/learn/howto/java/system/java-resource-loading-explained-absolute-and-relative-names-difference-between-classloader-and-class-resource-loading
|
static List<String> |
getResourceListing(ClassLoader cl,
String path) |
static List<String> |
getResources(String resourceBase)
Resource locator helper
|
static String |
wildcard2regexp(String wildcard)
Compile wildcard to regexp
|
public static boolean getBooleanProperty(Properties config, String key, boolean defaultValue)
public static InputStream getResourceAsStream(String resource) throws IOException
IOException
public static List<String> getResources(String resourceBase) throws URISyntaxException, IOException
URISyntaxException
IOException
public static List<String> getResourceListing(ClassLoader cl, String path) throws URISyntaxException, IOException
URISyntaxException
IOException
Copyright © 2016. All rights reserved.