Package opennlp.tools.formats.muc

# Class MucNameContentHandler

java.lang.Object
opennlp.tools.formats.muc.SgmlParser.ContentHandler
opennlp.tools.formats.muc.MucNameContentHandler

public class MucNameContentHandler extends SgmlParser.ContentHandler

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `MucNameContentHandler(Tokenizer tokenizer, List<NameSample> storedSamples)`
  Initializes a `MucNameContentHandler`.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `characters(CharSequence chars)`
  `void`
  `endElement(String name)`
  `void`
  `startElement(String name, Map<String,String> attributes)`

  ### Methods inherited from class java.lang.Object

  `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### MucNameContentHandler

    public MucNameContentHandler(Tokenizer tokenizer, List<NameSample> storedSamples)
    Initializes a `MucNameContentHandler`.
    Parameters:
      `tokenizer` - The `Tokenizer` to use. Must not be `null`.
      `storedSamples` - The `samples` as input. Must not be `null`.

- ## Method Details

  - ### startElement

    public void startElement(String name, Map<String,String> attributes) throws InvalidFormatException
    Overrides:
      `startElement` in class `SgmlParser.ContentHandler`
    Throws:
      `InvalidFormatException`

  - ### characters

    public void characters(CharSequence chars)
    Overrides:
      `characters` in class `SgmlParser.ContentHandler`

  - ### endElement

    public void endElement(String name)
    Overrides:
      `endElement` in class `SgmlParser.ContentHandler`