Package opennlp.tools.formats.muc
Class SgmlParser
java.lang.Object
opennlp.tools.formats.muc.SgmlParser
A SAX style SGML parser.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Defines methods to handle content produced by aSgmlParser
. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
parse
(Reader in, SgmlParser.ContentHandler handler) Parses an SGML document available via the input inReader
.
-
Constructor Details
-
SgmlParser
public SgmlParser()
-
-
Method Details
-
parse
Parses an SGML document available via the input inReader
. The specifiedSgmlParser.ContentHandler
is responsible of how to interpret the document specific details.- Parameters:
in
- AReader
that provides the data of the SGML document.handler
- TheSgmlParser.ContentHandler
to interpret the document with.- Throws:
IOException
- Thrown if IO errors occurred.InvalidFormatException
- Thrown if parameters were invalid.
-