it.assist.jrecordbind
Interface LineReader

All Known Implementing Classes:
SimpleLineReader

public interface LineReader

There are special situations when you need to make some preprocessing work on the lines you read from the text file before JRecordBind starts unmarshalling

Author:
Federico Fissore

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
 

Method Detail

readLine

String readLine(BufferedReader reader)
Reads a line from the BufferedReader. That's where you would like to add your customization

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

setGlobalPadder

void setGlobalPadder(Padder globalPadder)
The Unmarshaller will inject this property when instantiated

Parameters:
globalPadder -

setPropertyDelimiter

void setPropertyDelimiter(String propertyDelimiter)
The Unmarshaller will inject this property when instantiated

Parameters:
propertyDelimiter -

setRecordLength

void setRecordLength(int recordLength)
The Unmarshaller will inject this property when instantiated

Parameters:
recordLength -

setLineSeparator

void setLineSeparator(String lineSeparator)
The Unmarshaller will inject this property when instantiated

Parameters:
lineSeparator -


Copyright © 2009-2011. All Rights Reserved.