public class KeyValueInformation extends Object
AbstractTextEventReader
and inherited classes to store contents of commands
containing key value information.Constructor and Description |
---|
KeyValueInformation(String originalKey,
String value,
char delimiter) |
Modifier and Type | Method and Description |
---|---|
char |
getDelimiter()
Returns the delimiter that was used to delimit the value of this instance.
|
String |
getOriginalKey()
Returns the key as it was written from the source stream (file).
|
String |
getValue()
Returns the value as it was written from the source stream (file).
|
boolean |
wasValueDelimited()
Determines whether the read value was delimited in the source stream.
|
public KeyValueInformation(String originalKey, String value, char delimiter)
public String getOriginalKey()
public String getValue()
public char getDelimiter()
' '
if the value was not delimitedpublic boolean wasValueDelimited()
true
, if the value was delimited or false
otherwise.