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
AnObjectInputwhich reads data from anInput.Note this is not an implementation of
ObjectInputStreamwhich 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 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
-
-
-
-
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- Overrides:
closein classKryoDataInput- Throws:
java.io.IOException
-
-