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 ofObjectInputStreamwhich has special handling for serialization in Java such as support for readResolve.
-
-
Field Summary
Fields Modifier and Type Field Description private Kryokryo-
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)java.lang.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
-
-
-
-
Field Detail
-
kryo
private final Kryo kryo
-
-
Method Detail
-
readObject
public java.lang.Object readObject() throws java.lang.ClassNotFoundException, java.io.IOException- Specified by:
readObjectin interfacejava.io.ObjectInput- Throws:
java.lang.ClassNotFoundExceptionjava.io.IOException
-
read
public int read() throws java.io.IOException- Specified by:
readin interfacejava.io.ObjectInput- Throws:
java.io.IOException
-
read
public int read(byte[] b) throws java.io.IOException- Specified by:
readin interfacejava.io.ObjectInput- Throws:
java.io.IOException
-
read
public int read(byte[] b, int off, int len) throws java.io.IOException- Specified by:
readin interfacejava.io.ObjectInput- Throws:
java.io.IOException
-
skip
public long skip(long n) throws java.io.IOException- Specified by:
skipin interfacejava.io.ObjectInput- Throws:
java.io.IOException
-
available
public int available() throws java.io.IOException- Specified by:
availablein interfacejava.io.ObjectInput- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.ObjectInput- Throws:
java.io.IOException
-
-