All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface oracle.xml.parser.v2.PrintDriver

public interface PrintDriver
The PrintDriver defines methods used to print XML documents represented as DOM trees.


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.

Methods

 o setEncoding
 public abstract 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 abstract void printDoctype(DTD dtd) throws IOException
Prints an DTD.

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

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

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

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

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

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

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

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

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

Parameters:
en - The XMLEntityReference node.
 o printChildNodes
 public abstract 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 abstract 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 abstract void flush() throws IOException
Flushes the output stream or print writer

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


All Packages  Class Hierarchy  This Package  Previous  Next  Index