public class StringDictionary extends Object
| Constructor and Description |
|---|
StringDictionary() |
StringDictionary(InputStream in)
Initializes the current instance.
|
| Modifier and Type | Method and Description |
|---|---|
String |
get(StringList key) |
void |
put(StringList key,
String value) |
void |
serialize(OutputStream out)
Writes the ngram instance to the given
OutputStream. |
public StringDictionary()
public StringDictionary(InputStream in) throws IOException, InvalidFormatException
in - IOExceptionInvalidFormatExceptionpublic String get(StringList key)
public void put(StringList key, String value)
public void serialize(OutputStream out) throws IOException
OutputStream.out - IOException - if an I/O Error during writing occuresCopyright © 2016 The Apache Software Foundation. All rights reserved.