* @throws IOException
* @throws InvalidFormatException
*/
public StringDictionary(InputStream in) throws IOException,
InvalidFormatException {
DictionarySerializer.create(in, new EntryInserter() {
public void insert(Entry entry) throws InvalidFormatException {
String valueString = entry.getAttributes().getValue("value");
put(entry.getTokens(), valueString);
}
});