public static class PropertiesConfiguration.JupPropertiesReader extends PropertiesConfiguration.PropertiesReader
PropertiesConfiguration.PropertiesReader
that tries to mimic the behavior of
Properties
.Constructor and Description |
---|
JupPropertiesReader(Reader reader)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
parseProperty(String line)
Parses a line read from the properties file.
|
String |
readProperty()
Reads a property line.
|
protected String |
unescapePropertyValue(String value)
Performs unescaping on the given property value.
|
getCommentLines, getPropertyName, getPropertySeparator, getPropertyValue, initPropertyName, initPropertySeparator, initPropertyValue, nextProperty, unescapePropertyName
getLineNumber, mark, read, read, readLine, reset, setLineNumber, skip
close, lines, markSupported, ready
public JupPropertiesReader(Reader reader)
reader
- A Reader.public String readProperty() throws IOException
PropertiesConfiguration.PropertiesReader
<name>
= <value>
)readProperty
in class PropertiesConfiguration.PropertiesReader
IOException
- in case of an I/O errorprotected void parseProperty(String line)
PropertiesConfiguration.PropertiesReader
initPropertyXXX()
methods.parseProperty
in class PropertiesConfiguration.PropertiesReader
line
- the line read from the properties fileprotected String unescapePropertyValue(String value)
PropertiesConfiguration.PropertiesReader
unescapePropertyValue
in class PropertiesConfiguration.PropertiesReader
value
- the property valueCopyright © 2001–2020 The Apache Software Foundation. All rights reserved.