public class DictionarySerializer
extends java.lang.Object
Constructor and Description |
---|
DictionarySerializer() |
Modifier and Type | Method and Description |
---|---|
static boolean |
create(java.io.InputStream in,
EntryInserter inserter)
|
static void |
serialize(java.io.OutputStream out,
java.util.Iterator<Entry> entries)
Deprecated.
|
static void |
serialize(java.io.OutputStream out,
java.util.Iterator<Entry> entries,
boolean casesensitive)
Serializes the given entries to the given
OutputStream . |
public static boolean create(java.io.InputStream in, EntryInserter inserter) throws java.io.IOException, InvalidFormatException
Entry
s from the given InputStream
and
forwards these Entry
s to the EntryInserter
.
After creation is finished the provided InputStream
is closed.in
- stream to read entries frominserter
- inserter to forward entries tojava.io.IOException
InvalidFormatException
@Deprecated public static void serialize(java.io.OutputStream out, java.util.Iterator<Entry> entries) throws java.io.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 serializejava.io.IOException
- If an I/O error occurspublic static void serialize(java.io.OutputStream out, java.util.Iterator<Entry> entries, boolean casesensitive) throws java.io.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.java.io.IOException
- If an I/O error occursCopyright © 2010 - 2020 Adobe. All Rights Reserved