Package opennlp.tools.formats.muc
Class SgmlParser.ContentHandler
java.lang.Object
opennlp.tools.formats.muc.SgmlParser.ContentHandler
- Direct Known Subclasses:
- MucNameContentHandler
- Enclosing class:
- SgmlParser
Defines methods to handle content produced by a 
SgmlParser.
 A concrete implementation interprets the document specific details.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionabstract voidcharacters(CharSequence chars) Handles a set of characters between SGML start and end tag.abstract voidendElement(String name) Handles a SGML end element.abstract voidstartElement(String name, Map<String, String> attributes) Handles a SGML start element.
- 
Constructor Details- 
ContentHandlerpublic ContentHandler()
 
- 
- 
Method Details- 
startElementpublic abstract void startElement(String name, Map<String, String> attributes) throws InvalidFormatExceptionHandles a SGML start element.- Parameters:
- name- The name of the element's start tag.
- attributes- The attributes supplied with the start tag. It may be empty.
- Throws:
- InvalidFormatException- Thrown if parameters were invalid.
 
- 
charactersHandles a set of characters between SGML start and end tag.- Parameters:
- chars- The characters to process.
- Throws:
- InvalidFormatException- Thrown if parameters were invalid.
 
- 
endElementHandles a SGML end element.- Parameters:
- name- The name of the element's end tag.
 
 
-