public class DXMLPrinter
extends java.lang.Object
XMLStreamWriter
.Constructor and Description |
---|
DXMLPrinter(javax.xml.stream.XMLStreamWriter out) |
Modifier and Type | Method and Description |
---|---|
void |
print(DPattern pattern)
Prints XML fragment for the given pattern.
|
void |
print(NameClass nc)
Prints XML fragment for the given name class.
|
void |
print(org.w3c.dom.Node node) |
void |
printDocument(DGrammarPattern grammar)
Prints grammar enclosed by start/end document.
|
public DXMLPrinter(javax.xml.stream.XMLStreamWriter out)
out
- Output stream.public void printDocument(DGrammarPattern grammar) throws javax.xml.stream.XMLStreamException
grammar
- javax.xml.stream.XMLStreamException
public void print(DPattern pattern) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public void print(NameClass nc) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public void print(org.w3c.dom.Node node) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
Copyright © 2010 - 2020 Adobe. All Rights Reserved