Class StringDictionary

java.lang.Object
opennlp.uima.normalizer.StringDictionary

public class StringDictionary extends Object
  • Constructor Details

  • Method Details

    • get

      public String get(StringList key)
      Retrieves a value from a dictionary via its key.
      Parameters:
      key - The key to get value with.
      Returns:
      Retrieves a corresponding String value or null if not found.
    • put

      public void put(StringList key, String value)
      Adds a new entry to the dictionary.
      Parameters:
      key - The key under which to put the value.
      value - The value to put.
    • serialize

      public void serialize(OutputStream out) throws IOException
      Writes the dictionary to the given OutputStream.
      Parameters:
      out - A valid, open OutputStream to serialize to.
      Throws:
      IOException - Thrown if IO errors occurred during serialization.