|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.richclient.settings.xml.StringXmlSettingsReaderWriter
public class StringXmlSettingsReaderWriter
Helper class, used for testing. The read method returns the xml settings parsed from the xml passed in the constructor, the write method writes to a buffer which can be read with the getBuffer method.
| Constructor Summary | |
|---|---|
StringXmlSettingsReaderWriter()
Creates a new instance. |
|
StringXmlSettingsReaderWriter(String xml)
Creates a new instance. |
|
| Method Summary | |
|---|---|
String |
getBuffer()
Returns the buffered xml. |
RootXmlSettings |
read(String key)
Reads the settings with the given key from the backing store. |
void |
write(RootXmlSettings settings)
Writes the given settings to the backing store. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StringXmlSettingsReaderWriter(String xml)
xml - the xmlpublic StringXmlSettingsReaderWriter()
| Method Detail |
|---|
public void write(RootXmlSettings settings)
throws SettingsException
XmlSettingsReaderWriter
write in interface XmlSettingsReaderWritersettings - the settings
SettingsException - wraps any exception thrown by the backing storepublic String getBuffer()
public RootXmlSettings read(String key)
throws SettingsException
XmlSettingsReaderWriter
read in interface XmlSettingsReaderWriterkey - the key
SettingsException - wraps any exception thrown by the backing store
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||