Class DictionaryEntryPersistor.DictionaryContenthandler
java.lang.Object
opennlp.tools.dictionary.serializer.DictionaryEntryPersistor.DictionaryContenthandler
- All Implemented Interfaces:
ContentHandler
- Enclosing class:
DictionaryEntryPersistor
private static class DictionaryEntryPersistor.DictionaryContenthandler
extends Object
implements ContentHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Attributesprivate final EntryInserterprivate booleanprivate booleanprivate final StringBuilder -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcharacters(char[] ch, int start, int length) voidNot implemented.voidendElement(String uri, String localName, String qName) Creates the Profile object after processing is complete and switches mIsInsideNgramElement flag.voidendPrefixMapping(String prefix) Not implemented.voidignorableWhitespace(char[] ch, int start, int length) Not implemented.voidprocessingInstruction(String target, String data) Not implemented.voidsetDocumentLocator(Locator locator) Not implemented.voidskippedEntity(String name) Not implemented.voidNot implemented.voidstartElement(String uri, String localName, String qName, Attributes atts) voidstartPrefixMapping(String prefix, String uri) Not implemented.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ContentHandler
declaration
-
Field Details
-
mInserter
-
mIsInsideTokenElement
private boolean mIsInsideTokenElement -
mIsCaseSensitiveDictionary
private boolean mIsCaseSensitiveDictionary -
mTokenList
-
token
-
mAttributes
-
-
Constructor Details
-
DictionaryContenthandler
-
-
Method Details
-
processingInstruction
Not implemented.- Specified by:
processingInstructionin interfaceContentHandler- Throws:
SAXException
-
startDocument
Not implemented.- Specified by:
startDocumentin interfaceContentHandler- Throws:
SAXException
-
startElement
public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException - Specified by:
startElementin interfaceContentHandler- Throws:
SAXException
-
characters
- Specified by:
charactersin interfaceContentHandler- Throws:
SAXException
-
endElement
Creates the Profile object after processing is complete and switches mIsInsideNgramElement flag.- Specified by:
endElementin interfaceContentHandler- Throws:
SAXException
-
endDocument
Not implemented.- Specified by:
endDocumentin interfaceContentHandler- Throws:
SAXException
-
endPrefixMapping
Not implemented.- Specified by:
endPrefixMappingin interfaceContentHandler- Throws:
SAXException
-
ignorableWhitespace
Not implemented.- Specified by:
ignorableWhitespacein interfaceContentHandler- Throws:
SAXException
-
setDocumentLocator
Not implemented.- Specified by:
setDocumentLocatorin interfaceContentHandler
-
skippedEntity
Not implemented.- Specified by:
skippedEntityin interfaceContentHandler- Throws:
SAXException
-
startPrefixMapping
Not implemented.- Specified by:
startPrefixMappingin interfaceContentHandler- Throws:
SAXException
-