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, preProcess
public boolean isEndOfRecord(java.lang.String line)
isEndOfRecord
in interface RecordSeparatorPolicy
isEndOfRecord
in class SimpleRecordSeparatorPolicy
line
- a String without a newline character at the end.RecordSeparatorPolicy.isEndOfRecord(String)