Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.sun.msv.writer
Interface GrammarWriter

All Known Implementing Classes:
  RELAXNGWriter

public interface GrammarWriter

Converter from AGM to the XML representation.

Author:
  Kohsuke KAWAGUCHI

Method Summary
`void` | `setDocumentHandler(org.xml.sax.DocumentHandler handler)` Sets DocumentHandler.
`void` | `write(Grammar grammar)` Converts this grammar to the XML representation.

Method Detail

### setDocumentHandler

    public void setDocumentHandler(org.xml.sax.DocumentHandler handler)

  Sets DocumentHandler. This handler will receive the result of conversion.

### write

    public void write(Grammar grammar)
               throws java.lang.UnsupportedOperationException,
                      org.xml.sax.SAXException

  Converts this grammar to the XML representation.

  Throws:
    `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.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD