public class SimplePropsParser
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
propertiesString |
protected int |
propsStrLen |
protected int |
propsStrPos |
protected char |
separatorChar |
Constructor and Description |
---|
SimplePropsParser(java.lang.String propsStr)
Creates a simple parser for a string of name=value property items.
|
SimplePropsParser(java.lang.String propsStr,
char sepCh)
Creates a simple parser for a string of name=value property items.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getValue(java.lang.String nameStr)
Returns the value associated with the given name string.
|
protected final java.lang.String propertiesString
protected final char separatorChar
protected final int propsStrLen
protected int propsStrPos
public SimplePropsParser(java.lang.String propsStr, char sepCh)
propsStr
- the string of property items to parse.sepCh
- the separator character for the property items.public SimplePropsParser(java.lang.String propsStr)
propsStr
- the string of property items to parse.public java.lang.String getValue(java.lang.String nameStr)
nameStr
- the name string to find.