All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class oracle.xml.parser.v2.XMLPrintDriver

java.lang.Object
   |
   +----oracle.xml.parser.v2.XMLPrintDriver

public class XMLPrintDriver
extends Object
implements PrintDriver
The XMLPrintDriver implements PrintDriver interface.


Constructor Index

 o XMLPrintDriver(OutputStream)
 o XMLPrintDriver(PrintWriter)

Method Index

 o close()
Closes the output stream or print writer
 o flush()
Flushes the output stream or print writer
 o printAttribute(XMLAttr)
Prints a XMLAttr node
 o printAttributeNodes(XMLElement)
Calls print method for each attribute of the XMLElement
 o printCDATASection(XMLCDATA)
Prints a XMLCDATA node
 o printChildNodes(XMLNode)
Calls print method for each child of the XMLNode
 o printComment(XMLComment)
Prints a XMLComment node
 o printDoctype(DTD)
Prints an DTD.
 o printDocument(XMLDocument)
Prints an XMLDocument.
 o printDocumentFragment(XMLDocumentFragment)
Prints an empty XMLDocumentFragment object.
 o printElement(XMLElement)
Prints an XMLElement.
 o printEntityReference(XMLEntityReference)
Prints a XMLEntityReference node
 o printProcessingInstruction(XMLPI)
Prints a XMLPI node
 o printTextNode(XMLText)
Prints a XMLText node
 o setEncoding(String)
Sets the encoding of the print driver.

Constructors

 o XMLPrintDriver
 public XMLPrintDriver(PrintWriter pw)
 o XMLPrintDriver
 public XMLPrintDriver(OutputStream os)

Methods

 o setEncoding
 public void setEncoding(String enc) throws IOException
Sets the encoding of the print driver.

Parameters:
enc - The encoding of the document being printed.
 o printDoctype
 public void printDoctype(DTD dtd) throws IOException
Prints an DTD.

Parameters:
dtd - The dtd to be printed.
 o printDocument
 public void printDocument(XMLDocument doc) throws IOException
Prints an XMLDocument.

Parameters:
elem - The document to be printed.
 o printElement
 public void printElement(XMLElement elem) throws IOException
Prints an XMLElement.

Parameters:
elem - The element to be printed.
 o printDocumentFragment
 public void printDocumentFragment(XMLDocumentFragment dfrag) throws IOException
Prints an empty XMLDocumentFragment object.

Parameters:
dfrag - The document fragment to be printed.
 o printTextNode
 public void printTextNode(XMLText text) throws IOException
Prints a XMLText node

Parameters:
text - The text node.
 o printComment
 public void printComment(XMLComment comment) throws IOException
Prints a XMLComment node

Parameters:
comment - The comment node.
 o printCDATASection
 public void printCDATASection(XMLCDATA cdata) throws IOException
Prints a XMLCDATA node

Parameters:
cdata - The XMLCDATA node.
 o printProcessingInstruction
 public void printProcessingInstruction(XMLPI pi) throws IOException
Prints a XMLPI node

Parameters:
pi - The XMLPI node.
 o printAttribute
 public void printAttribute(XMLAttr attr) throws IOException
Prints a XMLAttr node

Parameters:
attr - The XMLAttr node.
 o printEntityReference
 public void printEntityReference(XMLEntityReference en) throws IOException
Prints a XMLEntityReference node

Parameters:
en - The XMLEntityReference node.
 o printChildNodes
 public final void printChildNodes(XMLNode node) throws IOException
Calls print method for each child of the XMLNode

Parameters:
node - The node whose children are to be printed.
 o printAttributeNodes
 public final void printAttributeNodes(XMLElement elem) throws IOException
Calls print method for each attribute of the XMLElement

Parameters:
elem - The elem whose attributes are to be printed.
 o flush
 public void flush() throws IOException
Flushes the output stream or print writer

 o close
 public void close() throws IOException
Closes the output stream or print writer


All Packages  Class Hierarchy  This Package  Previous  Next  Index