public static class Properties.PropertiesReader
extends java.io.LineNumberReader
| Constructor | Description |
|---|---|
PropertiesReader(java.io.Reader reader,
boolean maybeTyped) |
Creates a new instance of
PropertiesReader and sets
the underlaying reader and the list delimiter. |
| Modifier and Type | Method | Description |
|---|---|---|
java.util.List<java.lang.String> |
getCommentLines() |
Returns the comment lines that have been read for the last property.
|
java.lang.String |
getPropertyName() |
Returns the name of the last read property.
|
java.lang.String |
getPropertyValue() |
Returns the value of the last read property.
|
java.util.List<java.lang.String> |
getValueLines() |
Returns the value lines that have been read for the last property.
|
boolean |
nextProperty() |
Parses the next property from the input stream and stores the found
name and value in internal fields.
|
java.lang.String |
readProperty() |
Reads a property line.
|
getLineNumber, mark, read, read, readLine, reset, setLineNumber, skippublic PropertiesReader(java.io.Reader reader,
boolean maybeTyped)
PropertiesReader and sets
the underlaying reader and the list delimiter.reader - the readerpublic java.lang.String readProperty()
throws java.io.IOException
<name>
= <value>)java.io.IOException - in case of an I/O errorpublic boolean nextProperty()
throws java.io.IOException
java.io.IOException - if an error occurspublic java.util.List<java.lang.String> getCommentLines()
readProperty()public java.util.List<java.lang.String> getValueLines()
readProperty()public java.lang.String getPropertyName()
nextProperty() was invoked and its
return value was true.public java.lang.String getPropertyValue()
nextProperty() was invoked and
its return value was true.