| 
 | Oracle® XML Java API Reference Release 1 (10.1) B12024-01 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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 XMLAttrnode | 
|  void | printAttributeNodes(XMLElement elem)Calls print method for each attribute of the XMLElement | 
|  void | printCDATASection(XMLCDATA cdata)Prints a XMLCDATAnode | 
|  void | printChildNodes(XMLNode node)Calls print method for each child of the XMLNode | 
|  void | printComment(XMLComment comment)Prints a XMLCommentnode | 
|  void | printDoctype(DTD dtd)Prints an DTD. | 
|  void | printDocument(XMLDocument doc)Prints an XMLDocument. | 
|  void | printDocumentFragment(XMLDocumentFragment dfrag)Prints an empty XMLDocumentFragmentobject. | 
|  void | printElement(XMLElement elem)Prints an XMLElement. | 
|  void | printEntityReference(XMLEntityReference en)Prints a XMLEntityReferencenode | 
|  void | printProcessingInstruction(XMLPI pi)Prints a XMLPInode | 
|  void | printTextNode(XMLText text)Prints a XMLTextnode | 
|  void | setEncoding(java.lang.String enc)Sets the encoding of the print driver. | 
| Method Detail | 
public void setEncoding(java.lang.String enc)
                 throws java.io.IOException
enc - The encoding of the document being printed.java.io.IOException
public void printDoctype(DTD dtd)
                  throws java.io.IOException
DTD.dtd - The dtd to be printed.java.io.IOException
public void printDocument(XMLDocument doc)
                   throws java.io.IOException
XMLDocument.java.io.IOException
public void printElement(XMLElement elem)
                  throws java.io.IOException
XMLElement.elem - The element to be printed.java.io.IOException
public void printDocumentFragment(XMLDocumentFragment dfrag)
                           throws java.io.IOException
XMLDocumentFragment object.dfrag - The document fragment to be printed.java.io.IOException
public void printTextNode(XMLText text)
                   throws java.io.IOException
XMLText nodetext - The text node.java.io.IOException
public void printComment(XMLComment comment)
                  throws java.io.IOException
XMLComment nodecomment - The comment node.java.io.IOException
public void printCDATASection(XMLCDATA cdata)
                       throws java.io.IOException
XMLCDATA nodecdata - The XMLCDATA node.java.io.IOException
public void printProcessingInstruction(XMLPI pi)
                                throws java.io.IOException
XMLPI nodepi - The XMLPI node.java.io.IOException
public void printAttribute(XMLAttr attr)
                    throws java.io.IOException
XMLAttr nodeattr - The XMLAttr node.java.io.IOException
public void printEntityReference(XMLEntityReference en)
                          throws java.io.IOException
XMLEntityReference nodeen - The XMLEntityReference node.java.io.IOException
public void printChildNodes(XMLNode node)
                     throws java.io.IOException
XMLNodenode - The node whose children are to be printed.java.io.IOException
public void printAttributeNodes(XMLElement elem)
                         throws java.io.IOException
XMLElementelem - The elem whose attributes are to be printed.java.io.IOException
public void flush()
           throws java.io.IOException
java.io.IOException
public void close()
           throws java.io.IOException
java.io.IOException| 
 | Oracle® XML Java API Reference Release 1 (10.1) B12024-01 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||