public class Configuration extends Object
The configuration directory used is given by:
System.setProperty
. When set programmatically, one
must make sure that it is set before any call to configurationDirectory()
,
since the property is only read once and then cached.Constructor and Description |
---|
Configuration() |
Modifier and Type | Method and Description |
---|---|
static File |
getDirectory() |
static File |
getFile(String relativeFilePath,
Object obj,
String defaultResource) |
static InputStream |
getFileAsStream(String relativeFilePath,
Object obj,
String defaultResource) |
public static File getDirectory()
public static File getFile(String relativeFilePath, Object obj, String defaultResource) throws IOException
IOException
public static InputStream getFileAsStream(String relativeFilePath, Object obj, String defaultResource) throws IOException
IOException
Copyright © 2015. All rights reserved.