public static class PropertiesConfiguration.PropertiesReader extends LineNumberReader
| Type | Property and Description |
|---|---|
boolean |
next
Parses the next property from the input stream and stores the found
name and value in internal fields.
|
String |
read
Reads a property line.
|
| Constructor and Description |
|---|
PropertiesConfiguration.PropertiesReader(Reader reader)
Constructor.
|
PropertiesConfiguration.PropertiesReader(Reader reader,
char listDelimiter)
Creates a new instance of
PropertiesReader and sets
the underlaying reader and the list delimiter. |
| Modifier and Type | Method and Description |
|---|---|
List |
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.
|
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, markSupported, ready<name>
= <value>)IOException - in case of an I/O errorIOException - if an error occurspublic PropertiesConfiguration.PropertiesReader(Reader reader)
reader - A Reader.public PropertiesConfiguration.PropertiesReader(Reader reader, char listDelimiter)
PropertiesReader and sets
the underlaying reader and the list delimiter.reader - the readerlistDelimiter - the list delimiter characterpublic String readProperty() throws IOException
<name>
= <value>)IOException - in case of an I/O errorpublic boolean nextProperty()
throws IOException
IOException - if an error occurspublic List getCommentLines()
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 © 2018 JBoss by Red Hat. All rights reserved.