Package com.esotericsoftware.kryo.io
Class KryoObjectInput
- java.lang.Object
-
- com.esotericsoftware.kryo.io.KryoDataInput
-
- com.esotericsoftware.kryo.io.KryoObjectInput
-
- All Implemented Interfaces:
DataInput
,ObjectInput
,AutoCloseable
public class KryoObjectInput extends KryoDataInput implements 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.- Author:
- Robert DiFalco
-
-
Field Summary
-
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)
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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.io.DataInput
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytes
-
-
-
-
Method Detail
-
readObject
public Object readObject() throws ClassNotFoundException, IOException
- Specified by:
readObject
in interfaceObjectInput
- Throws:
ClassNotFoundException
IOException
-
read
public int read() throws IOException
- Specified by:
read
in interfaceObjectInput
- Throws:
IOException
-
read
public int read(byte[] b) throws IOException
- Specified by:
read
in interfaceObjectInput
- Throws:
IOException
-
read
public int read(byte[] b, int off, int len) throws IOException
- Specified by:
read
in interfaceObjectInput
- Throws:
IOException
-
skip
public long skip(long n) throws IOException
- Specified by:
skip
in interfaceObjectInput
- Throws:
IOException
-
available
public int available() throws IOException
- Specified by:
available
in interfaceObjectInput
- Throws:
IOException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceObjectInput
- Throws:
IOException
-
-