public interface RecordSeparatorPolicy
Modifier and Type | Method and Description |
---|---|
boolean |
isEndOfRecord(String record)
Signal the end of a record based on the content of the current record.
|
String |
postProcess(String record)
Give the policy a chance to post-process a complete record, e.g.
|
String |
preProcess(String record)
Pre-process a record before another line is appended, in the case of a
multi-line record.
|
boolean isEndOfRecord(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.String postProcess(String record)
record
- the complete record.String preProcess(String record)
postProcess(String)
will be).record
- the current record.Copyright © 2014 Pivotal. All rights reserved.