|
Framework Professional Edition Package |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.Dictionary
java.util.Hashtable
com.prosyst.util.hash.XProperties
public class XProperties
Helper class for reading and writing properties in text file
| Constructor Summary | |
|---|---|
XProperties()
Constructs an empty XProperties instance, with initial capacity=30 |
|
| Method Summary | |
|---|---|
java.lang.Object |
get(java.lang.Object o)
Retuns a the value of the property with name (String) o, or null
if there is no such property. |
java.lang.Object |
get0(java.lang.Object o)
Retuns a the value of the property with name (String) o, or null
if there is no such property. |
boolean |
load(java.io.InputStream in)
Loads the properties from the specified InputStream. |
void |
save(java.io.OutputStream out)
Saves the properties in the specified OutputStream |
| Methods inherited from class java.util.Hashtable |
|---|
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, hashCode, isEmpty, keys, 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 XProperties()
| Method Detail |
|---|
public void save(java.io.OutputStream out)
public boolean load(java.io.InputStream in)
throws java.io.IOException
Key instancies, property values are kept as byte[]-s.
java.io.IOExceptionpublic java.lang.Object get(java.lang.Object o)
(String) o, or null
if there is no such property. If the value is a byte[], converts it to String before returning it.
get in interface java.util.Mapget in class java.util.Hashtableo - The name of the propertypublic java.lang.Object get0(java.lang.Object o)
(String) o, or null
if there is no such property. The value is returned without converting it to String
|
Framework Professional Edition Package |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||