类 JavaObjectInput
- java.lang.Object
-
- com.alibaba.dubbo.common.serialize.nativejava.NativeJavaObjectInput
-
- com.alibaba.dubbo.common.serialize.java.JavaObjectInput
-
- 所有已实现的接口:
DataInput
,ObjectInput
public class JavaObjectInput extends NativeJavaObjectInput
Java Object input.
-
-
字段概要
字段 修饰符和类型 字段 说明 static int
MAX_BYTE_ARRAY_LENGTH
-
构造器概要
构造器 构造器 说明 JavaObjectInput(InputStream is)
JavaObjectInput(InputStream is, boolean compacted)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 byte[]
readBytes()
Read byte array.Object
readObject()
read object.<T> T
readObject(Class<T> cls)
read object.<T> T
readObject(Class<T> cls, Type type)
read object.String
readUTF()
Read UTF-8 string.-
从类继承的方法 com.alibaba.dubbo.common.serialize.nativejava.NativeJavaObjectInput
readBool, readByte, readDouble, readFloat, readInt, readLong, readShort
-
-
-
-
字段详细资料
-
MAX_BYTE_ARRAY_LENGTH
public static final int MAX_BYTE_ARRAY_LENGTH
- 另请参阅:
- 常量字段值
-
-
构造器详细资料
-
JavaObjectInput
public JavaObjectInput(InputStream is) throws IOException
- 抛出:
IOException
-
JavaObjectInput
public JavaObjectInput(InputStream is, boolean compacted) throws IOException
- 抛出:
IOException
-
-
方法详细资料
-
readBytes
public byte[] readBytes() throws IOException
从接口复制的说明:DataInput
Read byte array.- 指定者:
readBytes
在接口中DataInput
- 覆盖:
readBytes
在类中NativeJavaObjectInput
- 返回:
- byte array.
- 抛出:
IOException
-
readUTF
public String readUTF() throws IOException
从接口复制的说明:DataInput
Read UTF-8 string.- 指定者:
readUTF
在接口中DataInput
- 覆盖:
readUTF
在类中NativeJavaObjectInput
- 返回:
- string.
- 抛出:
IOException
-
readObject
public Object readObject() throws IOException, ClassNotFoundException
从接口复制的说明:ObjectInput
read object.- 指定者:
readObject
在接口中ObjectInput
- 覆盖:
readObject
在类中NativeJavaObjectInput
- 返回:
- object.
- 抛出:
IOException
ClassNotFoundException
-
readObject
public <T> T readObject(Class<T> cls) throws IOException, ClassNotFoundException
从接口复制的说明:ObjectInput
read object.- 指定者:
readObject
在接口中ObjectInput
- 覆盖:
readObject
在类中NativeJavaObjectInput
- 参数:
cls
- object type.- 返回:
- object.
- 抛出:
IOException
ClassNotFoundException
-
readObject
public <T> T readObject(Class<T> cls, Type type) throws IOException, ClassNotFoundException
从接口复制的说明:ObjectInput
read object.- 指定者:
readObject
在接口中ObjectInput
- 覆盖:
readObject
在类中NativeJavaObjectInput
- 参数:
cls
- object type.- 返回:
- object.
- 抛出:
IOException
ClassNotFoundException
-
-