org.jmonks.batch.io.flat
Class FlatFileWriter.FlatFileWriterRecord
java.lang.Object
org.jmonks.batch.io.Record
org.jmonks.batch.io.WriterRecord
org.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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FlatFileWriter.FlatFileWriterRecord
protected FlatFileWriter.FlatFileWriterRecord(RecordType recordType)
- Constructs and initializes the writer record.
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.