|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RecordSeparatorPolicy
Policy for text file-based input sources to determine the end of a record, e.g. a record might be a single line, or it might be multiple lines terminated by a semicolon.
Method Summary | |
---|---|
boolean |
isEndOfRecord(String line)
Signal the end of a record based on the content of a line, being the latest line read from an input source. |
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. |
Method Detail |
---|
boolean isEndOfRecord(String line)
BufferedReader.readLine()
- i.e. no line separator character
at the end. But it might have line separators embedded in it.
line
- 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |