类 AvroObjectInput
- java.lang.Object
-
- org.apache.dubbo.common.serialize.avro.AvroObjectInput
-
- 所有已实现的接口:
DataInput,ObjectInput
public class AvroObjectInput extends Object implements ObjectInput
-
-
构造器概要
构造器 构造器 说明 AvroObjectInput(InputStream in)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 booleanreadBool()Read boolean.bytereadByte()Read byte.byte[]readBytes()Read byte array.doublereadDouble()Read double.floatreadFloat()Read float.intreadInt()Read integer.longreadLong()Read long.ObjectreadObject()will lost all attribute<T> TreadObject(Class<T> cls)read object<T> TreadObject(Class<T> cls, Type type)read objectshortreadShort()Read short integer.StringreadUTF()Read UTF-8 string.-
从接口继承的方法 org.apache.dubbo.common.serialize.ObjectInput
readAttachments, readEvent, readThrowable
-
-
-
-
构造器详细资料
-
AvroObjectInput
public AvroObjectInput(InputStream in)
-
-
方法详细资料
-
readBool
public boolean readBool() throws IOException从接口复制的说明:DataInputRead boolean.- 指定者:
readBool在接口中DataInput- 返回:
- boolean.
- 抛出:
IOException
-
readByte
public byte readByte() throws IOException从接口复制的说明:DataInputRead byte.- 指定者:
readByte在接口中DataInput- 返回:
- byte value.
- 抛出:
IOException
-
readShort
public short readShort() throws IOException从接口复制的说明:DataInputRead short integer.- 指定者:
readShort在接口中DataInput- 返回:
- short.
- 抛出:
IOException
-
readInt
public int readInt() throws IOException从接口复制的说明:DataInputRead integer.- 指定者:
readInt在接口中DataInput- 返回:
- integer.
- 抛出:
IOException
-
readLong
public long readLong() throws IOException从接口复制的说明:DataInputRead long.- 指定者:
readLong在接口中DataInput- 返回:
- long.
- 抛出:
IOException
-
readFloat
public float readFloat() throws IOException从接口复制的说明:DataInputRead float.- 指定者:
readFloat在接口中DataInput- 返回:
- float.
- 抛出:
IOException
-
readDouble
public double readDouble() throws IOException从接口复制的说明:DataInputRead double.- 指定者:
readDouble在接口中DataInput- 返回:
- double.
- 抛出:
IOException
-
readUTF
public String readUTF() throws IOException
从接口复制的说明:DataInputRead UTF-8 string.- 指定者:
readUTF在接口中DataInput- 返回:
- string.
- 抛出:
IOException
-
readBytes
public byte[] readBytes() throws IOException从接口复制的说明:DataInputRead byte array.- 指定者:
readBytes在接口中DataInput- 返回:
- byte array.
- 抛出:
IOException
-
readObject
public Object readObject() throws IOException, ClassNotFoundException
will lost all attribute- 指定者:
readObject在接口中ObjectInput- 返回:
- object
- 抛出:
IOException- if an I/O error occursClassNotFoundException- if an ClassNotFoundException occurs
-
readObject
public <T> T readObject(Class<T> cls) throws IOException, ClassNotFoundException
从接口复制的说明:ObjectInputread object- 指定者:
readObject在接口中ObjectInput- 参数:
cls- object class- 返回:
- object
- 抛出:
IOException- if an I/O error occursClassNotFoundException- if an ClassNotFoundException occurs
-
readObject
public <T> T readObject(Class<T> cls, Type type) throws IOException, ClassNotFoundException
从接口复制的说明:ObjectInputread object- 指定者:
readObject在接口中ObjectInput- 参数:
cls- object classtype- object type- 返回:
- object
- 抛出:
IOException- if an I/O error occursClassNotFoundException- if an ClassNotFoundException occurs
-
-