public static class Properties.PropertiesReader extends LineNumberReader
| Constructor and Description |
|---|
PropertiesReader(Reader reader,
boolean maybeTyped)
Creates a new instance of
PropertiesReader and sets
the underlaying reader and the list delimiter. |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getCommentLines()
Returns the comment lines that have been read for the last property.
|
String |
getPropertyName()
Returns the name of the last read property.
|
String |
getPropertyValue()
Returns the value of the last read property.
|
List<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.
|
String |
readProperty()
Reads a property line.
|
getLineNumber, mark, read, read, readLine, reset, setLineNumber, skipclose, lines, markSupported, readypublic PropertiesReader(Reader reader, boolean maybeTyped)
PropertiesReader and sets
the underlaying reader and the list delimiter.reader - the readerpublic String readProperty() throws IOException
<name>
= <value>)IOException - in case of an I/O errorpublic boolean nextProperty()
throws IOException
IOException - if an error occurspublic List<String> getCommentLines()
readProperty()public List<String> getValueLines()
readProperty()public String getPropertyName()
nextProperty() was invoked and its
return value was true.public String getPropertyValue()
nextProperty() was invoked and
its return value was true.Copyright © 2006–2021 The Apache Software Foundation. All rights reserved.