public class InputStreamKryoSerializer
extends com.esotericsoftware.kryo.Serializer<T>
Kryo Serializer which handles instances of InputStream.
This serializer doesn't guarantee that the deserialized streams are of the same type as the serialized ones. It only guarantees
that the content is the same.| Constructor and Description |
|---|
InputStreamKryoSerializer() |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
read(com.esotericsoftware.kryo.Kryo kryo,
com.esotericsoftware.kryo.io.Input input,
Class<InputStream> type) |
protected byte[] |
readBytes(com.esotericsoftware.kryo.io.Input input)
Reads a
byte[] from the given input |
void |
write(com.esotericsoftware.kryo.Kryo kryo,
com.esotericsoftware.kryo.io.Output output,
InputStream in) |
protected void |
writeStream(com.esotericsoftware.kryo.io.Output output,
InputStream in)
Writes the given
in into the serialization output |
public void write(com.esotericsoftware.kryo.Kryo kryo,
com.esotericsoftware.kryo.io.Output output,
InputStream in)
write in class com.esotericsoftware.kryo.Serializer<InputStream>public InputStream read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input, Class<InputStream> type)
read in class com.esotericsoftware.kryo.Serializer<InputStream>protected void writeStream(com.esotericsoftware.kryo.io.Output output,
InputStream in)
in into the serialization outputoutput - the serialization outputin - the stream to serializeprotected byte[] readBytes(com.esotericsoftware.kryo.io.Input input)
byte[] from the given inputinput - the serialization inputbyte[]Copyright © 2006–2022 MuleSoft, Inc.. All rights reserved.