| java.util.Properties de.mcs.utils.ExtendedProperties
ExtendedProperties | public class ExtendedProperties extends Properties (Code) | | This class extands the normal properties class with functions to directly get
simple types.
author: w.klaas |
Method Summary | |
final public boolean | getBool(String key) directly getting boolean value.
Parameters: key - the property to get. | final public boolean | getBool(String key, boolean defaultValue) directly getting boolean value.
Parameters: key - the property to get. Parameters: defaultValue - the default value to get, if the property is not present. | final public File | getFile(String key) directly getting a file value.
Parameters: key - the property to get. | final public File | getFile(String key, File defaultValue) directly getting a file value.
Parameters: key - the property to get. Parameters: defaultValue - the default value to get, if the property is not present. | final public int | getInt(String key) directly getting integer value.
Parameters: key - the property to get. | final public int | getInt(String key, int defaultValue) directly getting integer value.
Parameters: key - the property to get. Parameters: defaultValue - the default value to get, if the property is not present. | final public int | getInt(String key, String defaultValue) directly getting integer value.
Parameters: key - the property to get. Parameters: defaultValue - the default value to get, if the property is not present. | final public long | getLong(String key) directly getting long value.
Parameters: key - the property to get. | final public long | getLong(String key, long defaultValue) directly getting long value.
Parameters: key - the property to get. Parameters: defaultValue - the default value to get, if the property is not present. | final public long | getMSec(String key, String defaultValue) directly getting integer value.
Parameters: key - the property to get. Parameters: defaultValue - the default value to get, if the property is not present. | final public String[] | getStrings(String key) directly getting a string array value.
Parameters: key - the property to get. | final public String[] | getStrings(String key, String[] defaultValue) directly getting a string array value.
Parameters: key - the property to get. Parameters: defaultValue - the default value to get, if the property is not present. |
ExtendedProperties | public ExtendedProperties(File file) throws IOException(Code) | | Constructor for directly loaing properties from file.
Parameters: file - the file to load properties from. throws: IOException - if something goes wrong. |
ExtendedProperties | public ExtendedProperties()(Code) | | Simple Constructor.
|
getBool | final public boolean getBool(String key)(Code) | | directly getting boolean value.
Parameters: key - the property to get. the desired boolean value. |
getBool | final public boolean getBool(String key, boolean defaultValue)(Code) | | directly getting boolean value.
Parameters: key - the property to get. Parameters: defaultValue - the default value to get, if the property is not present. the desired boolean value. |
getFile | final public File getFile(String key)(Code) | | directly getting a file value.
Parameters: key - the property to get. the desired file. |
getFile | final public File getFile(String key, File defaultValue)(Code) | | directly getting a file value.
Parameters: key - the property to get. Parameters: defaultValue - the default value to get, if the property is not present. the desired file. |
getInt | final public int getInt(String key)(Code) | | directly getting integer value.
Parameters: key - the property to get. the desired int value. |
getInt | final public int getInt(String key, int defaultValue)(Code) | | directly getting integer value.
Parameters: key - the property to get. Parameters: defaultValue - the default value to get, if the property is not present. the desired int value. |
getInt | final public int getInt(String key, String defaultValue)(Code) | | directly getting integer value.
Parameters: key - the property to get. Parameters: defaultValue - the default value to get, if the property is not present. the desired int value. |
getLong | final public long getLong(String key)(Code) | | directly getting long value.
Parameters: key - the property to get. the desired long value. |
getLong | final public long getLong(String key, long defaultValue)(Code) | | directly getting long value.
Parameters: key - the property to get. Parameters: defaultValue - the default value to get, if the property is not present. the desired long value. |
getMSec | final public long getMSec(String key, String defaultValue)(Code) | | directly getting integer value.
Parameters: key - the property to get. Parameters: defaultValue - the default value to get, if the property is not present. the desired int value. |
getStrings | final public String[] getStrings(String key)(Code) | | directly getting a string array value.
Parameters: key - the property to get. the desired string array. |
getStrings | final public String[] getStrings(String key, String[] defaultValue)(Code) | | directly getting a string array value.
Parameters: key - the property to get. Parameters: defaultValue - the default value to get, if the property is not present. the desired string array. |
|
|