public class DictionarySerializer extends Object
| Constructor and Description |
|---|
DictionarySerializer() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
create(InputStream in,
EntryInserter inserter)
|
static void |
serialize(OutputStream out,
Iterator<Entry> entries)
Deprecated.
|
static void |
serialize(OutputStream out,
Iterator<Entry> entries,
boolean casesensitive)
Serializes the given entries to the given
OutputStream. |
public static boolean create(InputStream in, EntryInserter inserter) throws IOException
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 toIOExceptionInvalidFormatException@Deprecated public static void serialize(OutputStream out, Iterator<Entry> entries) throws IOException
serialize(java.io.OutputStream, java.util.Iterator, boolean) insteadOutputStream.
After the serialization is finished the provided
OutputStream remains open.out - stream to serialize toentries - entries to serializeIOException - If an I/O error occurspublic 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 occursCopyright © 2017 The Apache Software Foundation. All rights reserved.