Package opennlp.tools.formats.muc
Class SgmlParser
java.lang.Object
opennlp.tools.formats.muc.SgmlParser
A SAX style SGML parser.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDefines methods to handle content produced by aSgmlParser. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidparse(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.ContentHandleris responsible of how to interpret the document specific details.- Parameters:
in- AReaderthat provides the data of the SGML document.handler- TheSgmlParser.ContentHandlerto interpret the document with.- Throws:
IOException- Thrown if IO errors occurred.InvalidFormatException- Thrown if parameters were invalid.
-