public class KeyValueInformation extends java.lang.Object
AbstractTextEventReader
and inherited classes to store contents of commands
containing key value information.Constructor and Description |
---|
KeyValueInformation(java.lang.String originalKey,
java.lang.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.
|
java.lang.String |
getOriginalKey()
Returns the key as it was written from the source stream (file).
|
java.lang.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(java.lang.String originalKey, java.lang.String value, char delimiter)
public java.lang.String getOriginalKey()
public java.lang.String getValue()
public char getDelimiter()
' '
if the value was not delimitedpublic boolean wasValueDelimited()
true
, if the value was delimited or false
otherwise.