Package opennlp.tools.formats.muc
Class SgmlParser
java.lang.Object
opennlp.tools.formats.muc.SgmlParser
A SAX style SGML parser.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classDefines methods to handle content produced by aSgmlParser.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidparse(Reader in, SgmlParser.ContentHandler handler) Parses an SGML document available via the input inReader.
- 
Constructor Details- 
SgmlParserpublic SgmlParser()
 
- 
- 
Method Details- 
parseParses an SGML document available via the input inReader. The specifiedSgmlParser.ContentHandleris responsible of how to interpret the document specific details.- Parameters:
- in- A- Readerthat provides the data of the SGML document.
- handler- The- SgmlParser.ContentHandlerto interpret the document with.
- Throws:
- IOException- Thrown if IO errors occurred.
- InvalidFormatException- Thrown if parameters were invalid.
 
 
-