public interface GrammarWriter
| Modifier and Type | Method and Description |
|---|---|
void |
setDocumentHandler(DocumentHandler handler)
Sets DocumentHandler.
|
void |
write(Grammar grammar)
Converts this grammar to the XML representation.
|
void setDocumentHandler(DocumentHandler handler)
void write(Grammar grammar) throws UnsupportedOperationException, SAXException
UnsupportedOperationException - if this grammar cannot be serialized.
this exception can be thrown on the half way of the conversion.SAXException - DocumentHandler may throw a SAXException.Copyright © 2016 Oracle Corporation. All Rights Reserved.