|
|||||||||
| 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 from the given InputStream and
forwards these Entrys to the EntryInserter. |
static void |
serialize(OutputStream out,
Iterator<Entry> entries)
Deprecated. Use 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 from the given InputStream and
forwards these Entrys to the EntryInserter.
After creation is finished the provided InputStream is closed.
in - stream to read entries frominserter - inserter to forward entries to
IOException
InvalidFormatException
@Deprecated
public static void serialize(OutputStream out,
Iterator<Entry> entries)
throws IOException
serialize(java.io.OutputStream, java.util.Iterator, boolean) instead
OutputStream.
After the serialization is finished the provided
OutputStream remains open.
out - stream to serialize toentries - entries to serialize
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 - stream to serialize toentries - entries to serializecasesensitive - 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 | ||||||||