|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.tomgibara.pronto.config.source.DefaultPropertiesReader
public class DefaultPropertiesReader
Reads properties from an input stream using the java.util.Properties class.
| Constructor Summary | |
|---|---|
DefaultPropertiesReader()
Constructs a PropertiesReader which reads properties in the standard Java properties file format of dot separated, newline delimited key-value pairs. |
|
DefaultPropertiesReader(boolean isXML)
Constructs a PropertiesReader which reads properties in the standard Java properties file format. |
|
| Method Summary | |
|---|---|
boolean |
isXML()
Whether the properties are read as XML. |
java.util.Map<java.lang.String,java.lang.String> |
read(java.io.InputStream in)
Reads the bytes from an input stream and returns a set of properties which have been extracted from it. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultPropertiesReader()
public DefaultPropertiesReader(boolean isXML)
isXML - whether the XML properties format should be used| Method Detail |
|---|
public boolean isXML()
public java.util.Map<java.lang.String,java.lang.String> read(java.io.InputStream in)
throws java.io.IOException
PropertiesReader
read in interface PropertiesReaderin - an input stream containing java formatted properties
java.io.IOException - if an exception occurs reading the stream
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||