public interface GrammarWriter
Modifier and Type | Method and Description |
---|---|
void |
setDocumentHandler(org.xml.sax.DocumentHandler handler)
Sets DocumentHandler.
|
void |
write(Grammar grammar)
Converts this grammar to the XML representation.
|
void setDocumentHandler(org.xml.sax.DocumentHandler handler)
void write(Grammar grammar) throws java.lang.UnsupportedOperationException, org.xml.sax.SAXException
java.lang.UnsupportedOperationException
- if this grammar cannot be serialized.
this exception can be thrown on the half way of the conversion.org.xml.sax.SAXException
- DocumentHandler may throw a SAXException.