org.jmonks.batch.io.flat
Class FlatFileWriter.FlatFileWriterRecord

java.lang.Object
  extended byorg.jmonks.batch.io.Record
      extended byorg.jmonks.batch.io.WriterRecord
          extended byorg.jmonks.batch.io.flat.FlatFileWriter.FlatFileWriterRecord
Enclosing class:
FlatFileWriter

public class FlatFileWriter.FlatFileWriterRecord
extends WriterRecord

FixedWidthFlatFileWriterRecord implements WriterRecord by maintaing the field names and values as a map and provides the methods with proper access privileges to read into and write from the record.

Author:
Suresh Pragada

Constructor Summary
protected FlatFileWriter.FlatFileWriterRecord(RecordType recordType)
          Constructs and initializes the writer record.
 
Method Summary
protected  java.lang.Object readField(java.lang.String fieldName)
          Reads and returns the value associated with requested field name.
 void writeField(java.lang.String fieldName, java.lang.Object fieldValue)
          Writes the field data into the record.
 
Methods inherited from class org.jmonks.batch.io.Record
getRecordType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlatFileWriter.FlatFileWriterRecord

protected FlatFileWriter.FlatFileWriterRecord(RecordType recordType)
Constructs and initializes the writer record.

Method Detail

writeField

public void writeField(java.lang.String fieldName,
                       java.lang.Object fieldValue)
Writes the field data into the record.

Specified by:
writeField in class WriterRecord
Parameters:
fieldName - Name of the field defined in field spec.
fieldValue - Value for the field name.

readField

protected java.lang.Object readField(java.lang.String fieldName)
Reads and returns the value associated with requested field name.

Parameters:
fieldName - Name of the field.
Returns:
Returns the value associated with the field name.