|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectopennlp.tools.dictionary.serializer.DictionarySerializer
public class DictionarySerializer
This class is used by for reading and writing dictionaries of all kinds.
| Constructor Summary | |
|---|---|
DictionarySerializer()
|
|
| Method Summary | |
|---|---|
static boolean |
create(InputStream in,
EntryInserter inserter)
Creates Entrys form the given InputStream and
forwards these Entrys to the EntryInserter. |
static void |
serialize(OutputStream out,
Iterator<Entry> entries)
Deprecated. Use {@link DictionarySerializer#serialize(java.io.OutputStream, java.util.Iterator, boolean) instead |
static void |
serialize(OutputStream out,
Iterator<Entry> entries,
boolean casesensitive)
Serializes the given entries to the given OutputStream. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DictionarySerializer()
| Method Detail |
|---|
public static boolean create(InputStream in,
EntryInserter inserter)
throws IOException,
InvalidFormatException
Entrys form the given InputStream and
forwards these Entrys to the EntryInserter.
After creation is finished the provided InputStream is closed.
in - inserter -
IOException
InvalidFormatException
@Deprecated
public static void serialize(OutputStream out,
Iterator<Entry> entries)
throws IOException
OutputStream.
After the serialization is finished the provided
OutputStream remains open.
out - entries -
IOException - If an I/O error occurs
public static void serialize(OutputStream out,
Iterator<Entry> entries,
boolean casesensitive)
throws IOException
OutputStream.
After the serialization is finished the provided
OutputStream remains open.
out - entries - casesensitive - indicates if the written dictionary
should be case sensitive or case insensitive.
IOException - If an I/O error occurs
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||