- java.lang.Object
-
- org.fissore.jrecordbind.SimpleLineReader
-
- All Implemented Interfaces:
LineReader
public class SimpleLineReader extends Object implements LineReader
The defaultLineReader
implementation. It will read all lines from a Reader, using given line separator to understand when a line ends
-
-
Constructor Summary
Constructors Constructor Description SimpleLineReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
readLine(Reader reader, Padder defaultPadder, String propertyDelimiter, int recordLength, String lineSeparator)
Reads a line from a Reader.
-
-
-
Constructor Detail
-
SimpleLineReader
public SimpleLineReader()
-
-
Method Detail
-
readLine
public String readLine(Reader reader, Padder defaultPadder, String propertyDelimiter, int recordLength, String lineSeparator)
Description copied from interface:LineReader
Reads a line from a Reader. This is where you want to add your customization- Specified by:
readLine
in interfaceLineReader
- Parameters:
reader
- a reader, reading from a fixed-length filedefaultPadder
- the padder to optionally use when reading a linepropertyDelimiter
- the delimiter used to delimit properties on a linerecordLength
- the total expected length of a linelineSeparator
- the character sequence used to mark the end of a line- Returns:
- a string, or null if there are no more lines to read
-
-