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).
DefaultPropertiesPersister, java.util.Properties
| Modifier and Type | Method and Description |
|---|---|
| public void | load(Properties
the Properties object to load into props, InputStream the InputStream to load from is)Load properties from the given InputStream into the given Properties object. |
| public void | load(Properties
the Properties object to load into props, Reader the Reader to load from reader)Load properties from the given Reader into the given Properties object. |
| public void | loadFromXml(Properties
the Properties object to load into props, InputStream the InputStream to load from is)Load properties from the given XML InputStream into the given Properties object. |
| public void | store(Properties
the Properties object to store props, OutputStream the OutputStream to write to os, String the description of the property list header)Write the contents of the given Properties object to the given OutputStream. |
| public void | store(Properties
the Properties object to store props, Writer the Writer to write to writer, String the description of the property list header)Write the contents of the given Properties object to the given Writer. |
| public void | storeToXml(Properties
the Properties object to store props, OutputStream the OutputStream to write to os, String the description of the property list header)Write the contents of the given Properties object to the given XML OutputStream. |
| public void | storeToXml(Properties
the Properties object to store props, OutputStream the OutputStream to write to os, String the description of the property list header, String the encoding to use encoding)Write the contents of the given Properties object to the given XML OutputStream. |
| load | back to summary |
|---|---|
| public void load(Properties props, InputStream is) throws IOException Load properties from the given InputStream into the given Properties object.
| |
| load | back to summary |
|---|---|
| public void load(Properties props, Reader reader) throws IOException Load properties from the given Reader into the given Properties object.
| |
| loadFromXml | back to summary |
|---|---|
| public void loadFromXml(Properties props, InputStream is) throws IOException Load properties from the given XML InputStream into the given Properties object.
| |
| store | back to summary |
|---|---|
| public void store(Properties props, OutputStream os, String header) throws IOException Write the contents of the given Properties object to the given OutputStream.
| |
| store | back to summary |
|---|---|
| public void store(Properties props, Writer writer, String header) throws IOException Write the contents of the given Properties object to the given Writer.
| |
| storeToXml | back to summary |
|---|---|
| public void storeToXml(Properties props, OutputStream os, String header) throws IOException Write the contents of the given Properties object to the given XML OutputStream.
| |
| storeToXml | back to summary |
|---|---|
| public void storeToXml(Properties props, OutputStream os, String header, String encoding) throws IOException Write the contents of the given Properties object to the given XML OutputStream.
| |