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