Class SgmlParser
java.lang.Object
opennlp.tools.formats.muc.SgmlParser
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDefines methods to handle content produced by aSgmlParser. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final charprivate static final charprivate static final charprivate static final charprivate static final char -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static StringextractTagName(CharSequence tagChars) getAttributes(CharSequence tagChars) voidparse(Reader in, SgmlParser.ContentHandler handler) Parses an SGML document available via the input inReader.
-
Field Details
-
SYMBOL_CLOSE
private static final char SYMBOL_CLOSE- See Also:
-
SYMBOL_OPEN
private static final char SYMBOL_OPEN- See Also:
-
SYMBOL_SLASH
private static final char SYMBOL_SLASH- See Also:
-
SYMBOL_EQUALS
private static final char SYMBOL_EQUALS- See Also:
-
SYMBOL_QUOT
private static final char SYMBOL_QUOT- See Also:
-
-
Constructor Details
-
SgmlParser
public SgmlParser()
-
-
Method Details
-
extractTagName
- Throws:
InvalidFormatException
-
getAttributes
-
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.
-