com.northconcepts.datapipeline.xml
Class XmlWriter

java.lang.Object
  extended by com.northconcepts.datapipeline.core.DataEndpoint
      extended by com.northconcepts.datapipeline.core.DataWriter
          extended by com.northconcepts.datapipeline.core.AbstractWriter
              extended by com.northconcepts.datapipeline.core.TextWriter
                  extended by com.northconcepts.datapipeline.xml.XmlWriter

public class XmlWriter
extends TextWriter

Writes records to an XML stream using a template. See the Write an XML file example.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.northconcepts.datapipeline.core.DataEndpoint
DataEndpoint.State
 
Field Summary
 
Fields inherited from class com.northconcepts.datapipeline.core.AbstractWriter
currentRecord
 
Fields inherited from class com.northconcepts.datapipeline.core.DataEndpoint
BUFFER_SIZE, log
 
Constructor Summary
XmlWriter(XmlTemplate template, File file)
           
XmlWriter(XmlTemplate template, Writer writer)
           
 
Method Summary
 void close()
          Indicates that this endpoint has finished reading or writing.
 void open()
          Makes this endpoint ready for reading or writing.
protected  void writeRecord(Record record)
           
 
Methods inherited from class com.northconcepts.datapipeline.core.TextWriter
addExceptionProperties, getFile, getWriter
 
Methods inherited from class com.northconcepts.datapipeline.core.AbstractWriter
isFieldNamesInFirstRow, setFieldNamesInFirstRow, write, writeImpl
 
Methods inherited from class com.northconcepts.datapipeline.core.DataWriter
getNestedWriter, getRootWriter
 
Methods inherited from class com.northconcepts.datapipeline.core.DataEndpoint
assertNotOpened, assertOpened, decrementRecordCount, exception, exception, exception, finalize, getDescription, getRecordCount, getRecordCountAsBigInteger, getRecordCountAsString, getState, incrementRecordCount, isClosed, isOpen, isRecordCountBigInteger, resetRecordCount, setDescription, toString
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XmlWriter

public XmlWriter(XmlTemplate template,
                 File file)

XmlWriter

public XmlWriter(XmlTemplate template,
                 Writer writer)
Method Detail

open

public void open()
Description copied from class: DataEndpoint
Makes this endpoint ready for reading or writing.

Overrides:
open in class AbstractWriter

close

public void close()
Description copied from class: DataEndpoint
Indicates that this endpoint has finished reading or writing.

Overrides:
close in class TextWriter

writeRecord

protected void writeRecord(Record record)
                    throws Throwable
Specified by:
writeRecord in class AbstractWriter
Throws:
Throwable


Copyright (c) 2007-2012 North Concepts Inc. All Rights Reserved.