|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Dictionary<K,V>
java.util.Hashtable<java.lang.Object,java.lang.Object>
java.util.Properties
org.h2.util.SortedProperties
public class SortedProperties
Sorted properties file. This implementation requires that store() internally calls keys().
Field Summary |
---|
Fields inherited from class java.util.Properties |
---|
defaults |
Constructor Summary | |
---|---|
SortedProperties()
|
Method Summary | |
---|---|
static SortedProperties |
fromLines(java.lang.String s)
Convert a String to a map. |
static boolean |
getBooleanProperty(java.util.Properties prop,
java.lang.String key,
boolean def)
Get a boolean property value from a properties object. |
static int |
getIntProperty(java.util.Properties prop,
java.lang.String key,
int def)
Get an int property value from a properties object. |
java.util.Enumeration<java.lang.Object> |
keys()
|
static SortedProperties |
loadProperties(java.lang.String fileName)
Load a properties object from a file. |
void |
store(java.lang.String fileName)
Store a properties file. |
java.lang.String |
toLines()
Convert the map to a list of line in the form key=value. |
Methods inherited from class java.util.Properties |
---|
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNames |
Methods inherited from class java.util.Hashtable |
---|
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, rehash, remove, size, toString, values |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SortedProperties()
Method Detail |
---|
public java.util.Enumeration<java.lang.Object> keys()
keys
in class java.util.Hashtable<java.lang.Object,java.lang.Object>
public static boolean getBooleanProperty(java.util.Properties prop, java.lang.String key, boolean def)
prop
- the properties objectkey
- the keydef
- the default value
public static int getIntProperty(java.util.Properties prop, java.lang.String key, int def)
prop
- the properties objectkey
- the keydef
- the default value
public static SortedProperties loadProperties(java.lang.String fileName) throws java.io.IOException
fileName
- the name of the properties file
java.io.IOException
public void store(java.lang.String fileName) throws java.io.IOException
fileName
- the target file name
java.io.IOException
public java.lang.String toLines()
public static SortedProperties fromLines(java.lang.String s)
s
- the string
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |