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 RecordSeparatorPolicy
line
- a String without a newline character at the end.RecordSeparatorPolicy.isEndOfRecord(java.lang.String)
public String postProcess(String record)
postProcess
in interface RecordSeparatorPolicy
record
- the complete record.RecordSeparatorPolicy.postProcess(java.lang.String)
public String preProcess(String line)
preProcess
in interface RecordSeparatorPolicy
line
- the current record.RecordSeparatorPolicy.preProcess(java.lang.String)
Copyright © 2014 Pivotal. All rights reserved.