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