RELAXNGWriter
public interface GrammarWriter
Modifier and Type | Method | 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 © 2019 Oracle Corporation. All rights reserved.