|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Strategy interface for persisting java.util.Properties, allowing for pluggable parsing strategies.
The default implementation is DefaultPropertiesPersister, providing java.util.Properties' native parsing, but allowing for reading from any Reader and writing to any Writer, for example to specify a charset for a properties file.
DefaultPropertiesPersister
,
Properties
Method Summary | |
void |
load(java.util.Properties props,
java.io.InputStream is)
Load properties from the given InputStream into the given Properties object. |
void |
load(java.util.Properties props,
java.io.Reader reader)
Load properties from the given Reader into the given Properties object. |
void |
store(java.util.Properties props,
java.io.OutputStream os,
java.lang.String header)
Write the contents of the given Properties object to the given OutputStream. |
void |
store(java.util.Properties props,
java.io.Writer writer,
java.lang.String header)
Write the contents of the given Properties object to the given Writer. |
Method Detail |
public void load(java.util.Properties props, java.io.InputStream is) throws java.io.IOException
props
- the Properties object to load intois
- the InputStream to load from
java.io.IOException
- in case of I/O errorsProperties.load(java.io.InputStream)
public void load(java.util.Properties props, java.io.Reader reader) throws java.io.IOException
props
- the Properties object to load intoreader
- the Reader to load from
java.io.IOException
- in case of I/O errorspublic void store(java.util.Properties props, java.io.OutputStream os, java.lang.String header) throws java.io.IOException
props
- the Properties object to storeos
- the OutputStream to write toheader
- the description of the property list
java.io.IOException
- in case of I/O errorsProperties.store(java.io.OutputStream, java.lang.String)
public void store(java.util.Properties props, java.io.Writer writer, java.lang.String header) throws java.io.IOException
props
- the Properties object to storewriter
- the Writer to write toheader
- the description of the property list
java.io.IOException
- in case of I/O errors
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |