it.assist.jrecordbind
Class SimpleLineReader

java.lang.Object
  extended by it.assist.jrecordbind.SimpleLineReader
All Implemented Interfaces:
LineReader

public class SimpleLineReader
extends Object
implements LineReader


Constructor Summary
SimpleLineReader()
           
 
Method Summary
 String readLine(BufferedReader reader)
          Reads a line from the BufferedReader.
 void setGlobalPadder(Padder globalPadder)
          The Unmarshaller will inject this property when instantiated
 void setLineSeparator(String lineSeparator)
          The Unmarshaller will inject this property when instantiated
 void setPropertyDelimiter(String propertyDelimiter)
          The Unmarshaller will inject this property when instantiated
 void setRecordLength(int recordLength)
          The Unmarshaller will inject this property when instantiated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleLineReader

public SimpleLineReader()
Method Detail

readLine

public String readLine(BufferedReader reader)
Description copied from interface: LineReader
Reads a line from the BufferedReader. That's where you would like to add your customization

Specified by:
readLine in interface LineReader
Parameters:
reader - a reader, pointing at the fixed length files
Returns:
a string or null if there are no more lines to read

setGlobalPadder

public void setGlobalPadder(Padder globalPadder)
Description copied from interface: LineReader
The Unmarshaller will inject this property when instantiated

Specified by:
setGlobalPadder in interface LineReader

setPropertyDelimiter

public void setPropertyDelimiter(String propertyDelimiter)
Description copied from interface: LineReader
The Unmarshaller will inject this property when instantiated

Specified by:
setPropertyDelimiter in interface LineReader

setRecordLength

public void setRecordLength(int recordLength)
Description copied from interface: LineReader
The Unmarshaller will inject this property when instantiated

Specified by:
setRecordLength in interface LineReader

setLineSeparator

public void setLineSeparator(String lineSeparator)
Description copied from interface: LineReader
The Unmarshaller will inject this property when instantiated

Specified by:
setLineSeparator in interface LineReader


Copyright © 2009-2011. All Rights Reserved.