public interface RecordSeparatorPolicy
Modifier and Type | Method and Description |
---|---|
boolean |
isEndOfRecord(java.lang.String record)
Signal the end of a record based on the content of the current record.
|
java.lang.String |
postProcess(java.lang.String record)
Give the policy a chance to post-process a complete record, e.g.
|
java.lang.String |
preProcess(java.lang.String record)
Pre-process a record before another line is appended, in the case of a
multi-line record.
|
boolean isEndOfRecord(java.lang.String record)
BufferedReader.readLine()
- i.e.
no line separator character at the end. But it might have line separators
embedded in it.record
- a String without a newline character at the end.java.lang.String postProcess(java.lang.String record)
record
- the complete record.java.lang.String preProcess(java.lang.String record)
postProcess(String)
will be).record
- the current record.