public class ResourcePropertiesPersister extends DefaultPropertiesPersister
DefaultPropertiesPersister,
adding a conditional check for disabled XML support through the shared
"spring.xml.ignore" property.
This is the standard implementation used in Spring's resource support.
| Modifier and Type | Field and Description |
|---|---|
static ResourcePropertiesPersister |
INSTANCE
A convenient constant for a default
ResourcePropertiesPersister instance,
as used in Spring's common resource support. |
| Constructor and Description |
|---|
ResourcePropertiesPersister() |
| Modifier and Type | Method and Description |
|---|---|
void |
loadFromXml(Properties props,
InputStream is)
Load properties from the given XML InputStream into the
given Properties object.
|
void |
storeToXml(Properties props,
OutputStream os,
String header)
Write the contents of the given Properties object to the
given XML OutputStream.
|
void |
storeToXml(Properties props,
OutputStream os,
String header,
String encoding)
Write the contents of the given Properties object to the
given XML OutputStream.
|
load, load, store, storepublic static final ResourcePropertiesPersister INSTANCE
ResourcePropertiesPersister instance,
as used in Spring's common resource support.public void loadFromXml(Properties props, InputStream is) throws IOException
PropertiesPersisterloadFromXml in interface PropertiesPersisterloadFromXml in class DefaultPropertiesPersisterprops - the Properties object to load intois - the InputStream to load fromIOException - in case of I/O errorsProperties.loadFromXML(java.io.InputStream)public void storeToXml(Properties props, OutputStream os, String header) throws IOException
PropertiesPersisterstoreToXml in interface PropertiesPersisterstoreToXml in class DefaultPropertiesPersisterprops - the Properties object to storeos - the OutputStream to write toheader - the description of the property listIOException - in case of I/O errorsProperties.storeToXML(java.io.OutputStream, String)public void storeToXml(Properties props, OutputStream os, String header, String encoding) throws IOException
PropertiesPersisterstoreToXml in interface PropertiesPersisterstoreToXml in class DefaultPropertiesPersisterprops - the Properties object to storeos - the OutputStream to write toheader - the description of the property listencoding - the encoding to useIOException - in case of I/O errorsProperties.storeToXML(java.io.OutputStream, String, String)