com.retek.commons.component.xml.batch
Interface XmlFileWriter

All Known Implementing Classes:
XmlBufferedFileWriter

public interface XmlFileWriter

Interface defining the operations for a Customer integration XML file writer.


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.
 

Method Detail

open

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

Throws:
java.lang.Exception

write

public void write(java.lang.Object transactionObject)
           throws java.lang.Exception
Writes a transaction object to the integration xml file.

Parameters:
transactionObject - transaction object
Throws:
java.lang.Exception

close

public void close()
           throws java.lang.Exception
Close the XML file and seal it, writes any closing info to the file.

Throws:
java.lang.Exception

closeFile

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

Throws:
java.io.IOException


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