public static class Properties.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 |
---|
Properties.PropertiesReader(Reader reader)
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, skip
close, markSupported, ready
<name>
= <value>
)IOException
- in case of an I/O errorIOException
- if an error occurspublic Properties.PropertiesReader(Reader reader)
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-2014 The Apache Software Foundation. All Rights Reserved.