|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.xml.parser.v2.XMLPrintDriver
The XMLPrintDriver
implements PrintDriver
interface.
Field Summary |
Type | Field |
---|---|
protected XMLOutputStream |
out
|
Constructor Summary |
XMLPrintDriver(java.io.OutputStream os)
|
XMLPrintDriver(java.io.PrintWriter pw)
|
Method Summary |
Type | Method |
---|---|
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. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected XMLOutputStream out
Constructor Detail |
public XMLPrintDriver(java.io.PrintWriter pw)
public XMLPrintDriver(java.io.OutputStream os)
Method Detail |
public void setEncoding(java.lang.String enc) throws java.io.IOException
enc
- The encoding of the document being printed.public void printDoctype(DTD dtd) throws java.io.IOException
DTD
.dtd
- The dtd to be printed.public void printDocument(XMLDocument doc) throws java.io.IOException
XMLDocument
.elem
- The document to be printed.public void printElement(XMLElement elem) throws java.io.IOException
XMLElement
.elem
- The element to be printed.public void printDocumentFragment(XMLDocumentFragment dfrag) throws java.io.IOException
XMLDocumentFragment
object.dfrag
- The document fragment to be printed.public void printTextNode(XMLText text) throws java.io.IOException
XMLText
nodetext
- The text node.public void printComment(XMLComment comment) throws java.io.IOException
XMLComment
nodecomment
- The comment node.public void printCDATASection(XMLCDATA cdata) throws java.io.IOException
XMLCDATA
nodecdata
- The XMLCDATA node.public void printProcessingInstruction(XMLPI pi) throws java.io.IOException
XMLPI
nodepi
- The XMLPI node.public void printAttribute(XMLAttr attr) throws java.io.IOException
XMLAttr
nodeattr
- The XMLAttr node.public void printEntityReference(XMLEntityReference en) throws java.io.IOException
XMLEntityReference
nodeen
- The XMLEntityReference node.public final void printChildNodes(XMLNode node) throws java.io.IOException
XMLNode
node
- The node whose children are to be printed.public final void printAttributeNodes(XMLElement elem) throws java.io.IOException
XMLElement
elem
- The elem whose attributes are to be printed.public void flush() throws java.io.IOException
public void close() throws java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |