com.servingxml.components.recordmapping
Class RecordMappingRecordWriterAdaptor

java.lang.Object
  extended by com.servingxml.components.recordio.AbstractRecordWriter
      extended by com.servingxml.components.recordmapping.RecordMappingRecordWriterAdaptor
All Implemented Interfaces:
RecordWriter

public class RecordMappingRecordWriterAdaptor
extends AbstractRecordWriter
implements RecordWriter

A RecordMappingRecordWriterAdaptor implements a RecordWriter interface for transforming flat file record values into SAX events.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.servingxml.components.recordio.RecordWriter
RecordWriter.DefaultDiscardWriter, RecordWriter.NullRecordWriter
 
Field Summary
 
Fields inherited from interface com.servingxml.components.recordio.RecordWriter
DEFAULT_DISCARD_WRITER, NULL
 
Constructor Summary
RecordMappingRecordWriterAdaptor(MapXml toXmlBinding, org.xml.sax.ContentHandler handler)
           
 
Method Summary
 void close()
           
 void endRecordStream(ServiceContext context, Flow flow)
           
 void startRecordStream(ServiceContext context, Flow flow)
           
 void writeRecord(ServiceContext context, Flow flow)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RecordMappingRecordWriterAdaptor

public RecordMappingRecordWriterAdaptor(MapXml toXmlBinding,
                                        org.xml.sax.ContentHandler handler)
Method Detail

startRecordStream

public void startRecordStream(ServiceContext context,
                              Flow flow)
Specified by:
startRecordStream in interface RecordWriter

writeRecord

public void writeRecord(ServiceContext context,
                        Flow flow)
Specified by:
writeRecord in interface RecordWriter

endRecordStream

public void endRecordStream(ServiceContext context,
                            Flow flow)
Specified by:
endRecordStream in interface RecordWriter

close

public void close()
Specified by:
close in interface RecordWriter