|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.Dictionary<K,V> java.util.Hashtable<Object,Object> java.util.Properties org.apache.wiki.util.CommentedProperties
public class CommentedProperties
Extends Properties
by providing support for comment
preservation. When the properties are written to disk, previous
comments present in the file are preserved.
Field Summary |
---|
Fields inherited from class java.util.Properties |
---|
defaults |
Constructor Summary | |
---|---|
CommentedProperties()
|
|
CommentedProperties(Properties defaultValues)
Creates new properties. |
Method Summary | |
---|---|
void |
load(InputStream inStream)
|
void |
load(Reader in)
Loads properties from a file opened by a supplied Reader. |
Object |
put(Object arg0,
Object arg1)
|
void |
putAll(Map arg0)
|
Object |
remove(Object key)
|
Object |
setProperty(String key,
String value)
|
void |
store(OutputStream out,
String comments)
|
String |
toString()
|
Methods inherited from class java.util.Properties |
---|
getProperty, getProperty, list, list, loadFromXML, propertyNames, save, store, storeToXML, storeToXML, stringPropertyNames |
Methods inherited from class java.util.Hashtable |
---|
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, rehash, size, values |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CommentedProperties()
Properties.Properties()
public CommentedProperties(Properties defaultValues)
defaultValues
- A list of default values, which are used if in subsequent gets
a key is not found.Method Detail |
---|
public void load(InputStream inStream) throws IOException
load
in class Properties
IOException
public void load(Reader in) throws IOException
load
in class Properties
in
- The reader to read properties from
IOException
- in case something goes wrong.public Object setProperty(String key, String value)
setProperty
in class Properties
public void store(OutputStream out, String comments) throws IOException
store
in class Properties
IOException
public Object put(Object arg0, Object arg1)
put
in interface Map<Object,Object>
put
in class Hashtable<Object,Object>
public void putAll(Map arg0)
putAll
in interface Map<Object,Object>
putAll
in class Hashtable<Object,Object>
public Object remove(Object key)
remove
in interface Map<Object,Object>
remove
in class Hashtable<Object,Object>
public String toString()
toString
in class Hashtable<Object,Object>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |