类 SimpleRecordSeparatorPolicy
- java.lang.Object
- org.springframework.batch.item.file.separator.SimpleRecordSeparatorPolicy
- 所有已实现的接口:
RecordSeparatorPolicy
public class SimpleRecordSeparatorPolicy extends java.lang.Object implements RecordSeparatorPolicy
Simplest possibleRecordSeparatorPolicy
- treats all lines as record endings.- 作者:
- Dave Syer
构造器概要
构造器 构造器 说明 SimpleRecordSeparatorPolicy()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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.
构造器详细资料
SimpleRecordSeparatorPolicy
public SimpleRecordSeparatorPolicy()
方法详细资料
isEndOfRecord
public boolean isEndOfRecord(java.lang.String line)
Always returns true.- 指定者:
isEndOfRecord
在接口中RecordSeparatorPolicy
- 参数:
line
- a String without a newline character at the end.- 返回:
- true if this line is a complete record.
- 另请参阅:
RecordSeparatorPolicy.isEndOfRecord(java.lang.String)
postProcess
public java.lang.String postProcess(java.lang.String record)
Pass the record through. Do nothing.- 指定者:
postProcess
在接口中RecordSeparatorPolicy
- 参数:
record
- the complete record.- 返回:
- a modified version of the record if desired.
- 另请参阅:
RecordSeparatorPolicy.postProcess(java.lang.String)
preProcess
public java.lang.String preProcess(java.lang.String line)
Pass the line through. Do nothing.- 指定者:
preProcess
在接口中RecordSeparatorPolicy
- 参数:
line
- the current record.- 返回:
- the line as it should be appended to a record.
- 另请参阅:
RecordSeparatorPolicy.preProcess(java.lang.String)