|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjodd.props.PropsParser
public class PropsParser
Props parser.
| Nested Class Summary | |
|---|---|
protected static class |
PropsParser.ParseState
Parsing states. |
| Field Summary | |
|---|---|
protected java.lang.String |
escapeNewLineValue
Value that will be inserted when escaping the new line. |
protected boolean |
ignorePrefixWhitespacesOnNewLine
Defines if starting whitespaces when value is split in the new line should be ignored or not. |
protected boolean |
multilineValues
Defines if multi-line values may be written using triple-quotes as in python. |
protected static java.lang.String |
PROFILE_LEFT
|
protected static java.lang.String |
PROFILE_RIGHT
|
protected PropsData |
propsData
|
protected boolean |
skipEmptyProps
Don't include empty properties. |
protected boolean |
valueTrimLeft
Trims left the value. |
protected boolean |
valueTrimRight
Trims right the value. |
| Constructor Summary | |
|---|---|
PropsParser()
|
|
PropsParser(PropsData propsData)
|
|
| Method Summary | |
|---|---|
protected void |
add(java.lang.String key,
java.lang.String value)
Adds key-value to properties and profiles. |
protected void |
add(java.lang.String section,
java.lang.String key,
java.lang.StringBuilder value,
boolean trim)
Adds accumulated value to key and current section. |
PropsParser |
clone()
|
PropsData |
getPropsData()
|
void |
parse(java.lang.String in)
Loads properties. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final java.lang.String PROFILE_LEFT
protected static final java.lang.String PROFILE_RIGHT
protected final PropsData propsData
protected java.lang.String escapeNewLineValue
protected boolean valueTrimLeft
protected boolean valueTrimRight
protected boolean ignorePrefixWhitespacesOnNewLine
protected boolean multilineValues
protected boolean skipEmptyProps
| Constructor Detail |
|---|
public PropsParser()
public PropsParser(PropsData propsData)
| Method Detail |
|---|
public PropsData getPropsData()
public PropsParser clone()
clone in class java.lang.Objectpublic void parse(java.lang.String in)
protected void add(java.lang.String section,
java.lang.String key,
java.lang.StringBuilder value,
boolean trim)
protected void add(java.lang.String key,
java.lang.String value)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||