|
||||||||||
| 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(java.lang.String line)
Signal the end of a record based on the content of a line, being the latest line read from an input source. |
java.lang.String |
postProcess(java.lang.String record)
Give the policy a chance to post-process a complete record, e.g. |
java.lang.String |
preProcess(java.lang.String record)
Pre-process a record before another line is appended, in the case of a multi-line record. |
| Method Detail |
|---|
boolean isEndOfRecord(java.lang.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.
java.lang.String postProcess(java.lang.String record)
record - the complete record.
java.lang.String preProcess(java.lang.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 | |||||||||