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
AnObjectInput
which reads data from anInput
.Note this is not an implementation of
ObjectInputStream
which has special handling for Java serialization, such as support for readResolve.- Author:
- Robert DiFalco
-
-
Field Summary
-
Fields inherited from class com.esotericsoftware.kryo.io.KryoDataInput
input
-
-
Constructor Summary
Constructors Constructor Description KryoObjectInput(Kryo kryo, Input input)
-
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
-
-
-
-
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
- Overrides:
close
in classKryoDataInput
- Throws:
java.io.IOException
-
-