| org.springframework.util.PropertiesPersister |
Known Indirect Subclasses
|
Strategy interface for persisting java.util.Properties,
allowing for pluggable parsing strategies.
The default implementation is DefaultPropertiesPersister,
providing the native parsing of java.util.Properties,
but allowing for reading from any Reader and writing to any Writer
(which allows to specify an encoding for a properties file).
As of Spring 1.2.2, this interface also supports properties XML files,
through the loadFromXml and storeToXml methods.
The default implementations delegate to JDK 1.5's corresponding methods.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Load properties from the given Reader into the given
Properties object.
| |||||||||||
Load properties from the given InputStream into the given
Properties object.
| |||||||||||
Load properties from the given XML InputStream into the
given Properties object.
| |||||||||||
Write the contents of the given Properties object to the
given Writer.
| |||||||||||
Write the contents of the given Properties object to the
given OutputStream.
| |||||||||||
Write the contents of the given Properties object to the
given XML OutputStream.
| |||||||||||
Write the contents of the given Properties object to the
given XML OutputStream.
| |||||||||||
Load properties from the given Reader into the given Properties object.
| props | the Properties object to load into |
|---|---|
| reader | the Reader to load from |
| IOException | in case of I/O errors |
|---|
Load properties from the given InputStream into the given Properties object.
| props | the Properties object to load into |
|---|---|
| is | the InputStream to load from |
| IOException | in case of I/O errors |
|---|
Load properties from the given XML InputStream into the given Properties object.
| props | the Properties object to load into |
|---|---|
| is | the InputStream to load from |
| IOException | in case of I/O errors |
|---|
Write the contents of the given Properties object to the given Writer.
| props | the Properties object to store |
|---|---|
| writer | the Writer to write to |
| header | the description of the property list |
| IOException | in case of I/O errors |
|---|
Write the contents of the given Properties object to the given OutputStream.
| props | the Properties object to store |
|---|---|
| os | the OutputStream to write to |
| header | the description of the property list |
| IOException | in case of I/O errors |
|---|
Write the contents of the given Properties object to the given XML OutputStream.
| props | the Properties object to store |
|---|---|
| os | the OutputStream to write to |
| header | the description of the property list |
| IOException | in case of I/O errors |
|---|
Write the contents of the given Properties object to the given XML OutputStream.
| props | the Properties object to store |
|---|---|
| os | the OutputStream to write to |
| header | the description of the property list |
| encoding | the encoding to use |
| IOException | in case of I/O errors |
|---|