Package com.esotericsoftware.kryo.io
Class KryoObjectInput
- java.lang.Object
-
- com.esotericsoftware.kryo.io.KryoDataInput
-
- com.esotericsoftware.kryo.io.KryoObjectInput
-
- All Implemented Interfaces:
java.io.DataInput
,java.io.ObjectInput
,java.lang.AutoCloseable
public class KryoObjectInput extends KryoDataInput implements java.io.ObjectInput
A kryo implementation ofObjectInput
. Note that this is not an implementation ofObjectInputStream
which has special handling for serialization in Java such as support for readResolve.
-
-
Field Summary
Fields Modifier and Type Field Description private Kryo
kryo
-
Fields inherited from class com.esotericsoftware.kryo.io.KryoDataInput
input
-
-
Constructor Summary
Constructors Constructor Description KryoObjectInput(Kryo kryo, Input in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
available()
void
close()
int
read()
int
read(byte[] b)
int
read(byte[] b, int off, int len)
java.lang.Object
readObject()
long
skip(long n)
-
Methods inherited from class com.esotericsoftware.kryo.io.KryoDataInput
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, setInput, skipBytes
-
-
-
-
Field Detail
-
kryo
private final Kryo kryo
-
-
Method Detail
-
readObject
public java.lang.Object readObject() throws java.lang.ClassNotFoundException, java.io.IOException
- Specified by:
readObject
in interfacejava.io.ObjectInput
- Throws:
java.lang.ClassNotFoundException
java.io.IOException
-
read
public int read() throws java.io.IOException
- Specified by:
read
in interfacejava.io.ObjectInput
- Throws:
java.io.IOException
-
read
public int read(byte[] b) throws java.io.IOException
- Specified by:
read
in interfacejava.io.ObjectInput
- Throws:
java.io.IOException
-
read
public int read(byte[] b, int off, int len) throws java.io.IOException
- Specified by:
read
in interfacejava.io.ObjectInput
- Throws:
java.io.IOException
-
skip
public long skip(long n) throws java.io.IOException
- Specified by:
skip
in interfacejava.io.ObjectInput
- Throws:
java.io.IOException
-
available
public int available() throws java.io.IOException
- Specified by:
available
in interfacejava.io.ObjectInput
- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.ObjectInput
- Throws:
java.io.IOException
-
-