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 ofObjectInputStreamwhich 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 intavailable()voidclose()intread()intread(byte[] b)intread(byte[] b, int off, int len)ObjectreadObject()longskip(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:
readObjectin interfaceObjectInput- Throws:
ClassNotFoundExceptionIOException
-
read
public int read() throws IOException- Specified by:
readin interfaceObjectInput- Throws:
IOException
-
read
public int read(byte[] b) throws IOException- Specified by:
readin interfaceObjectInput- Throws:
IOException
-
read
public int read(byte[] b, int off, int len) throws IOException- Specified by:
readin interfaceObjectInput- Throws:
IOException
-
skip
public long skip(long n) throws IOException- Specified by:
skipin interfaceObjectInput- Throws:
IOException
-
available
public int available() throws IOException- Specified by:
availablein interfaceObjectInput- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceObjectInput- Throws:
IOException
-
-