java.lang.Object | ||||
↳ | com.opensymphony.module.propertyset.AbstractPropertySet | |||
↳ | com.opensymphony.module.propertyset.memory.MemoryPropertySet | |||
↳ | com.opensymphony.module.propertyset.memory.SerializablePropertySet | |||
↳ | com.opensymphony.module.propertyset.xml.XMLPropertySet |
The XMLPropertySet behaves as an in-memory typed PropertySet, with the ability to load and save all the properties to/from an XML document.
yyyy-mm-dd HH:mm:ss
format.
XMLPropertySet p = new XMLPropertySet(); // create blank property-set
p.load( new FileReader("my-properties.xml") ); // load properties from XML.
System.out.println( p.getString("name") );
p.setString("name","blah blah");
p.save( new FileWriter("my-properties.xml") ); // save properties back to XML.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.opensymphony.module.propertyset.PropertySet
|
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.opensymphony.module.propertyset.AbstractPropertySet
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Load properties from XML input.
| |||||||||||
Load properties from XML input.
| |||||||||||
Load properties from XML document.
| |||||||||||
Save properties to XML output.
| |||||||||||
Save properties to XML output.
| |||||||||||
Save properties to XML Document.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.opensymphony.module.propertyset.memory.SerializablePropertySet
| |||||||||||
From class
com.opensymphony.module.propertyset.memory.MemoryPropertySet
| |||||||||||
From class
com.opensymphony.module.propertyset.AbstractPropertySet
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
com.opensymphony.module.propertyset.PropertySet
|
Load properties from XML input.
IOException | |
---|---|
ParserConfigurationException | |
SAXException |
Load properties from XML input.
IOException | |
---|---|
ParserConfigurationException | |
SAXException |
Load properties from XML document.
Save properties to XML output.
IOException | |
---|---|
ParserConfigurationException |
Save properties to XML output.
IOException | |
---|---|
ParserConfigurationException |
Save properties to XML Document.
ParserConfigurationException |
---|