public class JsonRecordSeparatorPolicy extends SimpleRecordSeparatorPolicy
{"foo": "bar",
"value": { "spam": 2 }}
{"foo": "rab",
"value": { "spam": 3, "foo": "bar" }}
| Constructor and Description |
|---|
JsonRecordSeparatorPolicy() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isEndOfRecord(java.lang.String line)
True if the line can be parsed to a JSON object.
|
postProcess, preProcesspublic boolean isEndOfRecord(java.lang.String line)
isEndOfRecord in interface RecordSeparatorPolicyisEndOfRecord in class SimpleRecordSeparatorPolicyline - a String without a newline character at the end.RecordSeparatorPolicy.isEndOfRecord(String)