- java.lang.Object
-
- ch.bind.philib.io.Resources
-
public abstract class Resources extends Object
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedResources()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Map<String,String>loadPropertiesFile(String resource)static InputStreamopenResource(String resource)Opens different resources based on the scheme being used.
-
-
-
Method Detail
-
openResource
public static InputStream openResource(String resource) throws IOException
Opens different resources based on the scheme being used.Classpath
Resources starting with classpath: have this prefix removed and all- classpath:
- Parameters:
resource-- Returns:
- Throws:
IOException
-
loadPropertiesFile
public static Map<String,String> loadPropertiesFile(String resource) throws IOException
- Throws:
IOException
-
-