org.jmonks.batch.io.flat
Class FixedWidthFlatFileReader
java.lang.Object
   org.jmonks.batch.io.FileReader
org.jmonks.batch.io.FileReader
       org.jmonks.batch.io.flat.FlatFileReader
org.jmonks.batch.io.flat.FlatFileReader
           org.jmonks.batch.io.flat.FixedWidthFlatFileReader
org.jmonks.batch.io.flat.FixedWidthFlatFileReader
- public class FixedWidthFlatFileReader- extends FlatFileReader
  FixedWidthFlatFileReader reads the specified fixed width flat file according to the given file spec
  and returns the recrods on the needed basis. Each field value from the record
  should be read using readField method by passing the fieldName mentioned in 
  the file spec.  To find out how to read each record from the file and to read 
  the each field from the record, refer to the FileReader javadoc.
  
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Suresh Pragada
 
 
 
 
| Constructor Summary | 
| FixedWidthFlatFileReader(java.io.InputStream fileInputStream,
                         FileSpec fileSpec)Constructs and initializes the reader with the given file path and file spec.
 | 
| FixedWidthFlatFileReader(java.io.Reader reader,
                         FileSpec fileSpec)Constructs and initializes the reader with the given file path and file spec.
 | 
 
| Method Summary | 
| protected  ReaderRecord | parseRecord(java.lang.String recordString)Parses the given record string, translates it into the proper ReaderRecord
  and returns the reader record.
 | 
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
FixedWidthFlatFileReader
public FixedWidthFlatFileReader(java.io.InputStream fileInputStream,
                                FileSpec fileSpec)
- Constructs and initializes the reader with the given file path and file spec.
 
- Parameters:
- fileInputStream- Input stream to the file.
- fileSpec- File spec to be used to read the file.
FixedWidthFlatFileReader
public FixedWidthFlatFileReader(java.io.Reader reader,
                                FileSpec fileSpec)
- Constructs and initializes the reader with the given file path and file spec.
 
- Parameters:
- reader- Reader to the file.
- fileSpec- File spec to be used to read the file.
parseRecord
protected ReaderRecord parseRecord(java.lang.String recordString)
- Parses the given record string, translates it into the proper ReaderRecord
  and returns the reader record.
 
- 
- Specified by:
- parseRecordin class- FlatFileReader
 
- 
- Parameters:
- recordString- Record read from the file.
- Throws:
- FileParseException- Problems while parsing the 
                  next record. This includes unable to identify the recod with the availble record specs.