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
TypeMethod
 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

public 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

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

printDocument

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

printElement

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

printDocumentFragment

public 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

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

printComment

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

printCDATASection

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

printProcessingInstruction

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

printAttribute

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

printEntityReference

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

printChildNodes

public 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

public 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

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

close

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