| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static SortedProperties | |
| public static boolean | Returns: the value if set, or the default value if notthe properties object prop, String the key key, boolean the default value def)Get a boolean property value from a properties object. |
| public static int | Returns: the value if set, or the default value if notthe properties object prop, String the key key, int the default value def)Get an int property value from a properties object. |
| public static String | Returns: the value if set, or the default value if notthe properties object prop, String the key key, String the default value def)Get a string property value from a properties object. |
| public synchronized Enumeration | |
| public static synchronized SortedProperties | Returns: the properties objectthe name of the properties file fileName)Load a properties object from a file. |
| public synchronized void | |
| public synchronized String |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| SortedProperties | back to summary |
|---|---|
| public SortedProperties() | |
| fromLines | back to summary |
|---|---|
| public static SortedProperties fromLines(String s) Convert a String to a map.
| |
| getBooleanProperty | back to summary |
|---|---|
| public static boolean getBooleanProperty(Properties prop, String key, boolean def) Get a boolean property value from a properties object.
| |
| getIntProperty | back to summary |
|---|---|
| public static int getIntProperty(Properties prop, String key, int def) Get an int property value from a properties object.
| |
| getStringProperty | back to summary |
|---|---|
| public static String getStringProperty(Properties prop, String key, String def) Get a string property value from a properties object.
| |
| keys | back to summary |
|---|---|
| public synchronized Enumeration Overrides java. Doc from java. Returns an enumeration of the keys in this hashtable. Use the Enumeration methods on the returned object to fetch the keys sequentially. If the hashtable is structurally modified while enumerating over the keys then the results of enumerating are undefined.
| |
| loadProperties | back to summary |
|---|---|
| public static synchronized SortedProperties loadProperties(String fileName) throws IOException Load a properties object from a file.
| |
| store | back to summary |
|---|---|
| public synchronized void store(String fileName) throws IOException Store a properties file. The header and the date is not written.
| |
| toLines | back to summary |
|---|---|
| public synchronized String toLines() Convert the map to a list of line in the form key=value.
| |