类 KryoObjectInput2
- java.lang.Object
-
- org.apache.dubbo.common.serialize.kryo.optimized.KryoObjectInput2
-
- 所有已实现的接口:
Cleanable,DataInput,ObjectInput
public class KryoObjectInput2 extends Object implements ObjectInput, Cleanable
Kryo object input implementation, kryo object can be clean
-
-
构造器概要
构造器 构造器 说明 KryoObjectInput2(InputStream inputStream)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidcleanup()booleanreadBool()bytereadByte()byte[]readBytes()doublereadDouble()ObjectreadEvent()floatreadFloat()intreadInt()longreadLong()ObjectreadObject()<T> TreadObject(Class<T> clazz)<T> TreadObject(Class<T> clazz, Type type)shortreadShort()ThrowablereadThrowable()StringreadUTF()-
从接口继承的方法 org.apache.dubbo.common.serialize.ObjectInput
readAttachments
-
-
-
-
构造器详细资料
-
KryoObjectInput2
public KryoObjectInput2(InputStream inputStream)
-
-
方法详细资料
-
readBool
public boolean readBool() throws IOException- 指定者:
readBool在接口中DataInput- 抛出:
IOException
-
readByte
public byte readByte() throws IOException- 指定者:
readByte在接口中DataInput- 抛出:
IOException
-
readShort
public short readShort() throws IOException- 指定者:
readShort在接口中DataInput- 抛出:
IOException
-
readInt
public int readInt() throws IOException- 指定者:
readInt在接口中DataInput- 抛出:
IOException
-
readLong
public long readLong() throws IOException- 指定者:
readLong在接口中DataInput- 抛出:
IOException
-
readFloat
public float readFloat() throws IOException- 指定者:
readFloat在接口中DataInput- 抛出:
IOException
-
readDouble
public double readDouble() throws IOException- 指定者:
readDouble在接口中DataInput- 抛出:
IOException
-
readBytes
public byte[] readBytes() throws IOException- 指定者:
readBytes在接口中DataInput- 抛出:
IOException
-
readUTF
public String readUTF() throws IOException
- 指定者:
readUTF在接口中DataInput- 抛出:
IOException
-
readObject
public Object readObject() throws IOException, ClassNotFoundException
- 指定者:
readObject在接口中ObjectInput- 抛出:
IOExceptionClassNotFoundException
-
readThrowable
public Throwable readThrowable() throws IOException, ClassNotFoundException
- 指定者:
readThrowable在接口中ObjectInput- 抛出:
IOExceptionClassNotFoundException
-
readEvent
public Object readEvent() throws IOException, ClassNotFoundException
- 指定者:
readEvent在接口中ObjectInput- 抛出:
IOExceptionClassNotFoundException
-
readObject
public <T> T readObject(Class<T> clazz) throws IOException, ClassNotFoundException
- 指定者:
readObject在接口中ObjectInput- 抛出:
IOExceptionClassNotFoundException
-
readObject
public <T> T readObject(Class<T> clazz, Type type) throws IOException, ClassNotFoundException
- 指定者:
readObject在接口中ObjectInput- 抛出:
IOExceptionClassNotFoundException
-
-