|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.alibaba.dubbo.common.serialize.support.nativejava.NativeJavaObjectInput
com.alibaba.dubbo.common.serialize.support.java.JavaObjectInput
public class JavaObjectInput
Java Object input.
Field Summary | |
---|---|
static int |
MAX_BYTE_ARRAY_LENGTH
|
Constructor Summary | |
---|---|
JavaObjectInput(InputStream is)
|
|
JavaObjectInput(InputStream is,
boolean compacted)
|
Method Summary | ||
---|---|---|
byte[] |
readBytes()
Read byte array. |
|
Object |
readObject()
read object. |
|
|
readObject(Class<T> cls)
read object. |
|
|
readObject(Class<T> cls,
Type type)
read object. |
|
String |
readUTF()
Read UTF-8 string. |
Methods inherited from class com.alibaba.dubbo.common.serialize.support.nativejava.NativeJavaObjectInput |
---|
readBool, readByte, readDouble, readFloat, readInt, readLong, readShort |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MAX_BYTE_ARRAY_LENGTH
Constructor Detail |
---|
public JavaObjectInput(InputStream is) throws IOException
IOException
public JavaObjectInput(InputStream is, boolean compacted) throws IOException
IOException
Method Detail |
---|
public byte[] readBytes() throws IOException
DataInput
readBytes
in interface DataInput
readBytes
in class NativeJavaObjectInput
IOException
public String readUTF() throws IOException
DataInput
readUTF
in interface DataInput
readUTF
in class NativeJavaObjectInput
IOException
public Object readObject() throws IOException, ClassNotFoundException
ObjectInput
readObject
in interface ObjectInput
readObject
in class NativeJavaObjectInput
IOException
ClassNotFoundException
public <T> T readObject(Class<T> cls) throws IOException, ClassNotFoundException
ObjectInput
readObject
in interface ObjectInput
readObject
in class NativeJavaObjectInput
cls
- object type.
IOException
ClassNotFoundException
public <T> T readObject(Class<T> cls, Type type) throws IOException, ClassNotFoundException
ObjectInput
readObject
in interface ObjectInput
readObject
in class NativeJavaObjectInput
cls
- object type.
IOException
ClassNotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |