public class IteratorKryoSerializer
extends com.esotericsoftware.kryo.Serializer<T>
Kryo Serializer for instances of Iterator.
This serializer does not guarantee that the deserialized iterators are of the same class as the serialized ones. It only
guarantees that the contents are the same.| Constructor and Description |
|---|
IteratorKryoSerializer() |
| Modifier and Type | Method and Description |
|---|---|
protected <I> List<I> |
iteratorToList(Iterator<I> iterator)
|
Iterator |
read(com.esotericsoftware.kryo.Kryo kryo,
com.esotericsoftware.kryo.io.Input input,
Class<Iterator> type) |
protected <I> Collection<I> |
readCollection(com.esotericsoftware.kryo.Kryo kryo,
com.esotericsoftware.kryo.io.Input input)
Deserializes a
Collection from the given input |
void |
write(com.esotericsoftware.kryo.Kryo kryo,
com.esotericsoftware.kryo.io.Output output,
Iterator iterator) |
protected <I> void |
writeCollection(com.esotericsoftware.kryo.Kryo kryo,
com.esotericsoftware.kryo.io.Output output,
Collection<I> items)
Serializes the given
items |
public void write(com.esotericsoftware.kryo.Kryo kryo,
com.esotericsoftware.kryo.io.Output output,
Iterator iterator)
write in class com.esotericsoftware.kryo.Serializer<Iterator>public Iterator read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input, Class<Iterator> type)
read in class com.esotericsoftware.kryo.Serializer<Iterator>protected <I> List<I> iteratorToList(Iterator<I> iterator)
I - the generic type of the iterator's contentiterator - an iteratorList with the iterator's contentprotected <I> void writeCollection(com.esotericsoftware.kryo.Kryo kryo,
com.esotericsoftware.kryo.io.Output output,
Collection<I> items)
itemsI - the generic type of the collection itemskryo - a Kryo instanceoutput - the serialization Outputitems - the collection to be serializedprotected <I> Collection<I> readCollection(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input)
Collection from the given inputI - the generic type of the collection itemskryo - a Kryo instanceinput - the serialization inputCollectionCopyright © 2006–2022 MuleSoft, Inc.. All rights reserved.