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.
-
close()
- Closes the output stream or print writer
-
flush()
- Flushes the output stream or print writer
-
printAttribute(XMLAttr)
- Prints a
XMLAttr node
-
printAttributeNodes(XMLElement)
- Calls print method for each attribute of the
XMLElement
-
printCDATASection(XMLCDATA)
- Prints a
XMLCDATA node
-
printChildNodes(XMLNode)
- Calls print method for each child of the
XMLNode
-
printComment(XMLComment)
- Prints a
XMLComment node
-
printDoctype(DTD)
- Prints an
DTD.
-
printDocument(XMLDocument)
- Prints an
XMLDocument.
-
printDocumentFragment(XMLDocumentFragment)
- Prints an empty
XMLDocumentFragment object.
-
printElement(XMLElement)
- Prints an
XMLElement.
-
printEntityReference(XMLEntityReference)
- Prints a
XMLEntityReference node
-
printProcessingInstruction(XMLPI)
- Prints a
XMLPI node
-
printTextNode(XMLText)
- Prints a
XMLText node
-
setEncoding(String)
- Sets the encoding of the print driver.
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.
printDoctype
public abstract void printDoctype(DTD dtd) throws IOException
- Prints an
DTD.
- Parameters:
- dtd - The dtd to be printed.
printDocument
public abstract void printDocument(XMLDocument doc) throws IOException
- Prints an
XMLDocument.
- Parameters:
- elem - The document to be printed.
printElement
public abstract void printElement(XMLElement elem) throws IOException
- Prints an
XMLElement.
- Parameters:
- elem - The element to be printed.
printDocumentFragment
public abstract void printDocumentFragment(XMLDocumentFragment dfrag) throws IOException
- Prints an empty
XMLDocumentFragment object.
- Parameters:
- dfrag - The document fragment to be printed.
printTextNode
public abstract void printTextNode(XMLText text) throws IOException
- Prints a
XMLText node
- Parameters:
- text - The text node.
printComment
public abstract void printComment(XMLComment comment) throws IOException
- Prints a
XMLComment node
- Parameters:
- comment - The comment node.
printCDATASection
public abstract void printCDATASection(XMLCDATA cdata) throws IOException
- Prints a
XMLCDATA node
- Parameters:
- cdata - The XMLCDATA node.
printProcessingInstruction
public abstract void printProcessingInstruction(XMLPI pi) throws IOException
- Prints a
XMLPI node
- Parameters:
- pi - The XMLPI node.
printAttribute
public abstract void printAttribute(XMLAttr attr) throws IOException
- Prints a
XMLAttr node
- Parameters:
- attr - The XMLAttr node.
printEntityReference
public abstract void printEntityReference(XMLEntityReference en) throws IOException
- Prints a
XMLEntityReference node
- Parameters:
- en - The XMLEntityReference node.
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.
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.
flush
public abstract void flush() throws IOException
- Flushes the output stream or print writer
close
public abstract void close() throws IOException
- Closes the output stream or print writer
All Packages Class Hierarchy This Package Previous Next Index