com.retek.commons.component.xml.batch
Class XmlBufferedFileWriter

java.lang.Object
  extended bycom.retek.commons.component.xml.batch.XmlBufferedFileWriter
All Implemented Interfaces:
XmlFileWriter

public class XmlBufferedFileWriter
extends java.lang.Object
implements XmlFileWriter

Abstract class which implements behavior for a buffered file writer for writing transactions to an xml output file.


Constructor Summary
XmlBufferedFileWriter(java.io.File exportFile, RDate createTime, XmlFileWriterTransactionHandler handler, java.util.Set observers)
           
 
Method Summary
 void close()
          Close the XML file and seal it, writes any closing info to the file.
 void closeFile()
          Physically close the XML file.
 void open()
          Open the XML file and prepare it for processing, writes appropriate header info to the file.
 void write(java.lang.Object transactionObject)
          Writes a transaction object to the integration xml file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlBufferedFileWriter

public XmlBufferedFileWriter(java.io.File exportFile,
                             RDate createTime,
                             XmlFileWriterTransactionHandler handler,
                             java.util.Set observers)
                      throws SystemException
Method Detail

open

public void open()
          throws java.lang.Exception
Description copied from interface: XmlFileWriter
Open the XML file and prepare it for processing, writes appropriate header info to the file.

Specified by:
open in interface XmlFileWriter
Throws:
java.lang.Exception

write

public void write(java.lang.Object transactionObject)
           throws java.lang.Exception
Description copied from interface: XmlFileWriter
Writes a transaction object to the integration xml file.

Specified by:
write in interface XmlFileWriter
Parameters:
transactionObject - transaction object
Throws:
java.lang.Exception

close

public final void close()
                 throws java.lang.Exception
Description copied from interface: XmlFileWriter
Close the XML file and seal it, writes any closing info to the file.

Specified by:
close in interface XmlFileWriter
Throws:
java.lang.Exception

closeFile

public final void closeFile()
                     throws java.io.IOException
Description copied from interface: XmlFileWriter
Physically close the XML file. This physcially closes the wrapped file writer. Should only be used if an exception has occurred during process.

Specified by:
closeFile in interface XmlFileWriter
Throws:
java.io.IOException


Copyright © 2004 Retek Inc. All Rights Reserved. - Generated at Fri, 10/22/2004 07:28