Skip navigation links

Oracle® Database XML Java API Reference
11g Release 1 (11.1)

B28391-01


oracle.xml.parser.v2
Interface PrintDriver

All Known Implementing Classes:
XMLPrintDriver

public interface PrintDriver

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


Method Summary
 void close()
          Closes the output stream or print writer
 void flush()
          Flushes the output stream or print writer
 void printAttribute(XMLAttr attr)
          Prints a XMLAttr node
 void printAttributeNodes(XMLElement elem)
          Calls print method for each attribute of the XMLElement
 void printCDATASection(XMLCDATA cdata)
          Prints a XMLCDATA node
 void printChildNodes(XMLNode node)
          Calls print method for each child of the XMLNode
 void printComment(XMLComment comment)
          Prints a XMLComment node
 void printDoctype(DTD dtd)
          Prints an DTD.
 void printDocument(XMLDocument doc)
          Prints an XMLDocument.
 void printDocumentFragment(XMLDocumentFragment dfrag)
          Prints an empty XMLDocumentFragment object.
 void printElement(XMLElement elem)
          Prints an XMLElement.
 void printEntityReference(XMLEntityReference en)
          Prints a XMLEntityReference node
 void printProcessingInstruction(XMLPI pi)
          Prints a XMLPI node
 void printTextNode(XMLText text)
          Prints a XMLText node
 void setEncoding(java.lang.String enc)
          Sets the encoding of the print driver.

 

Method Detail

setEncoding

void setEncoding(java.lang.String enc)
                 throws java.io.IOException
Sets the encoding of the print driver.
Parameters:
enc - The encoding of the document being printed.
Throws:
java.io.IOException

printDoctype

void printDoctype(DTD dtd)
                  throws java.io.IOException
Prints an DTD.
Parameters:
dtd - The dtd to be printed.
Throws:
java.io.IOException

printDocument

void printDocument(XMLDocument doc)
                   throws java.io.IOException
Prints an XMLDocument.
Parameters:
elem - The document to be printed.
Throws:
java.io.IOException

printElement

void printElement(XMLElement elem)
                  throws java.io.IOException
Prints an XMLElement.
Parameters:
elem - The element to be printed.
Throws:
java.io.IOException

printDocumentFragment

void printDocumentFragment(XMLDocumentFragment dfrag)
                           throws java.io.IOException
Prints an empty XMLDocumentFragment object.
Parameters:
dfrag - The document fragment to be printed.
Throws:
java.io.IOException

printTextNode

void printTextNode(XMLText text)
                   throws java.io.IOException
Prints a XMLText node
Parameters:
text - The text node.
Throws:
java.io.IOException

printComment

void printComment(XMLComment comment)
                  throws java.io.IOException
Prints a XMLComment node
Parameters:
comment - The comment node.
Throws:
java.io.IOException

printCDATASection

void printCDATASection(XMLCDATA cdata)
                       throws java.io.IOException
Prints a XMLCDATA node
Parameters:
cdata - The XMLCDATA node.
Throws:
java.io.IOException

printProcessingInstruction

void printProcessingInstruction(XMLPI pi)
                                throws java.io.IOException
Prints a XMLPI node
Parameters:
pi - The XMLPI node.
Throws:
java.io.IOException

printAttribute

void printAttribute(XMLAttr attr)
                    throws java.io.IOException
Prints a XMLAttr node
Parameters:
attr - The XMLAttr node.
Throws:
java.io.IOException

printEntityReference

void printEntityReference(XMLEntityReference en)
                          throws java.io.IOException
Prints a XMLEntityReference node
Parameters:
en - The XMLEntityReference node.
Throws:
java.io.IOException

printChildNodes

void printChildNodes(XMLNode node)
                     throws java.io.IOException
Calls print method for each child of the XMLNode
Parameters:
node - The node whose children are to be printed.
Throws:
java.io.IOException

printAttributeNodes

void printAttributeNodes(XMLElement elem)
                         throws java.io.IOException
Calls print method for each attribute of the XMLElement
Parameters:
elem - The elem whose attributes are to be printed.
Throws:
java.io.IOException

flush

void flush()
           throws java.io.IOException
Flushes the output stream or print writer
Throws:
java.io.IOException

close

void close()
           throws java.io.IOException
Closes the output stream or print writer
Throws:
java.io.IOException

Skip navigation links

Oracle® Database XML Java API Reference
11g Release 1 (11.1)

B28391-01


Copyright © 2003, 2007, Oracle. All rights reserved.