Package opennlp.uima.normalizer
Class StringDictionary
java.lang.Object
opennlp.uima.normalizer.StringDictionary
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionget(StringList key) Retrieves a value from a dictionary via itskey.voidput(StringList key, String value) Adds a new entry to the dictionary.voidserialize(OutputStream out) Writes the dictionary to the givenOutputStream.
- 
Constructor Details- 
StringDictionarypublic StringDictionary()
- 
StringDictionaryInitializesStringDictionaryvia a specifiedInputStream.- Parameters:
- in- A valid, open- InputStreamto initialize with.
- Throws:
- IOException- Thrown if IO errors occurred.
 
 
- 
- 
Method Details- 
getRetrieves a value from a dictionary via itskey.- Parameters:
- key- The- keyto get value with.
- Returns:
- Retrieves a corresponding String value or nullif not found.
 
- 
putAdds a new entry to the dictionary.- Parameters:
- key- The- keyunder which to put the- value.
- value- The value to put.
 
- 
serializeWrites the dictionary to the givenOutputStream.- Parameters:
- out- A valid, open- OutputStreamto serialize to.
- Throws:
- IOException- Thrown if IO errors occurred during serialization.
 
 
-