public class SimpleRecordSeparatorPolicy extends java.lang.Object implements RecordSeparatorPolicy
RecordSeparatorPolicy - treats all lines as record
endings.| Constructor and Description |
|---|
SimpleRecordSeparatorPolicy() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isEndOfRecord(java.lang.String line)
Always returns true.
|
java.lang.String |
postProcess(java.lang.String record)
Pass the record through.
|
java.lang.String |
preProcess(java.lang.String line)
Pass the line through.
|
public boolean isEndOfRecord(java.lang.String line)
isEndOfRecord in interface RecordSeparatorPolicyline - a String without a newline character at the end.RecordSeparatorPolicy.isEndOfRecord(java.lang.String)public java.lang.String postProcess(java.lang.String record)
postProcess in interface RecordSeparatorPolicyrecord - the complete record.RecordSeparatorPolicy.postProcess(java.lang.String)public java.lang.String preProcess(java.lang.String line)
preProcess in interface RecordSeparatorPolicyline - the current record.RecordSeparatorPolicy.preProcess(java.lang.String)