Oracle Fusion Middleware extensions for Seed Data Framework
11g Release 1 (11.1.2)

E22564-02

oracle.apps.fnd.applseed.rt.extract.util.xml
Class SDXMLSaxWriter

java.lang.Object
  extended by oracle.apps.fnd.applseed.rt.extract.util.xml.SDAbstractXMLWriter
      extended by oracle.apps.fnd.applseed.rt.extract.util.xml.SDXMLSaxWriter
All Implemented Interfaces:
SDXMLWriter

public class SDXMLSaxWriter
extends SDAbstractXMLWriter

Wrapper class for XMLSAXSerializer. Implmentation of SDXMLWriter interface.


Field Summary
 
Fields inherited from class oracle.apps.fnd.applseed.rt.extract.util.xml.SDAbstractXMLWriter
outputFile, outputStream, writerType
 
Constructor Summary
SDXMLSaxWriter(java.io.File file, java.lang.String type)
          Constructor for named file to create.
SDXMLSaxWriter(java.io.OutputStream stream, java.lang.String type)
          Constructor.
 
Method Summary
 void addComment(java.lang.String comment)
          Add comments to document.
 void addText(java.lang.String textVal)
          Add text to the document under current element.
 void appendElement(java.lang.String elementName)
          Append the named element to document.
 void endDocument()
          End the current document, end any open elements, flush and close output stream.
 void flush()
          Flush the serializer output stream.
 void newElement(java.lang.String elementName, SDNodeAttributes attributes)
          Start a new element in document.
 void startDocument()
          Starts a new document.
 
Methods inherited from class oracle.apps.fnd.applseed.rt.extract.util.xml.SDAbstractXMLWriter
abort, addElement, addElement, addElement, createMessage, newElement, newElement, newTextNode, newTextNode, newTextNode, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SDXMLSaxWriter

public SDXMLSaxWriter(java.io.OutputStream stream,
                      java.lang.String type)
Constructor.

Parameters:
stream - OutputStream to accept document output
type - String writer type, eg Base, Xliff, ADXML

SDXMLSaxWriter

public SDXMLSaxWriter(java.io.File file,
                      java.lang.String type)
               throws java.io.FileNotFoundException
Constructor for named file to create.

Parameters:
file - File to create
type - String writer type, eg Base, Xliff, ADXML
Throws:
java.io.FileNotFoundException - if file param does not exist
Method Detail

startDocument

public void startDocument()
                   throws ExtractXmlSerializeException
Starts a new document.

Specified by:
startDocument in interface SDXMLWriter
Specified by:
startDocument in class SDAbstractXMLWriter
Throws:
ExtractXmlSerializeException

newElement

public void newElement(java.lang.String elementName,
                       SDNodeAttributes attributes)
                throws ExtractXmlSerializeException
Start a new element in document.

Specified by:
newElement in interface SDXMLWriter
Specified by:
newElement in class SDAbstractXMLWriter
Parameters:
elementName - String element name
attributes - SDNodeAttributes any attributes to add, null if none
Throws:
ExtractXmlSerializeException

addText

public void addText(java.lang.String textVal)
             throws ExtractXmlSerializeException
Add text to the document under current element.

Specified by:
addText in interface SDXMLWriter
Specified by:
addText in class SDAbstractXMLWriter
Parameters:
textVal - String text value
Throws:
ExtractXmlSerializeException

appendElement

public void appendElement(java.lang.String elementName)
                   throws ExtractXmlSerializeException
Append the named element to document.

Specified by:
appendElement in interface SDXMLWriter
Specified by:
appendElement in class SDAbstractXMLWriter
Parameters:
elementName -
Throws:
ExtractXmlSerializeException

addComment

public void addComment(java.lang.String comment)
                throws ExtractXmlSerializeException
Add comments to document.

Specified by:
addComment in interface SDXMLWriter
Specified by:
addComment in class SDAbstractXMLWriter
Parameters:
comment - String comments to add
Throws:
ExtractXmlSerializeException

endDocument

public void endDocument()
                 throws ExtractXmlSerializeException
End the current document, end any open elements, flush and close output stream.

Specified by:
endDocument in interface SDXMLWriter
Specified by:
endDocument in class SDAbstractXMLWriter
Throws:
ExtractXmlSerializeException

flush

public void flush()
           throws ExtractXmlSerializeException
Flush the serializer output stream.

Specified by:
flush in interface SDXMLWriter
Specified by:
flush in class SDAbstractXMLWriter
Throws:
ExtractXmlSerializeException

Oracle Fusion Middleware extensions for Seed Data Framework
11g Release 1 (11.1.2)

E22564-02

Copyright © 2011 Oracle. All Rights Reserved.