|
Qizx/open 4.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.qizx.api.util.DOMToPushStream
public final class DOMToPushStream
Pushes a DOM document or an element to an XMLPushStream handler.
This can be used typically to import a DOM document into an XML Library
(see Library#beginImportDocument), or even to serialize a DOM
document using a XMLSerializer as output.
| Constructor Summary | |
|---|---|
DOMToPushStream(ItemFactory itemFactory,
XMLPushStream output)
Builds an adapter from DOM to an implementation of XMLPushStream. |
|
| Method Summary | |
|---|---|
static Node |
convertNode(Node node)
Utility for conversion of DOM to Data Model nodes |
XMLPushStream |
getOutput()
Returns the current output handler. |
void |
putDocument(Document document)
Pushes a complete document to the output stream. |
void |
putElement(Element element)
Pushes an element and all its descendant nodes to the output stream. |
void |
setOutput(XMLPushStream output)
Redefines the current output handler. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DOMToPushStream(ItemFactory itemFactory,
XMLPushStream output)
itemFactory - used to create QNamesoutput - an implementation of XMLPushStream| Method Detail |
|---|
public XMLPushStream getOutput()
public void setOutput(XMLPushStream output)
output - an implementation of XMLPushStream
public void putDocument(Document document)
throws DataModelException
document - input document to convert
DataModelException - if thrown by the output handler
public static Node convertNode(Node node)
throws DataModelException
node - any DOM node
DataModelException
public void putElement(Element element)
throws DataModelException
element - a DOM element to convert
DataModelException
|
© 2010 Axyana Software | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||