public class JavaObjectInput extends NativeJavaObjectInput
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
MAX_BYTE_ARRAY_LENGTH |
| 构造器和说明 |
|---|
JavaObjectInput(InputStream is) |
JavaObjectInput(InputStream is,
boolean compacted) |
| 限定符和类型 | 方法和说明 |
|---|---|
byte[] |
readBytes() |
Object |
readObject() |
<T> T |
readObject(Class<T> cls) |
<T> T |
readObject(Class<T> cls,
Type type) |
String |
readUTF() |
readBool, readByte, readDouble, readFloat, readInt, readLong, readShortpublic static final int MAX_BYTE_ARRAY_LENGTH
public JavaObjectInput(InputStream is) throws IOException
IOExceptionpublic JavaObjectInput(InputStream is, boolean compacted) throws IOException
IOExceptionpublic byte[] readBytes()
throws IOException
readBytes 在接口中 DataInputreadBytes 在类中 NativeJavaObjectInputIOExceptionpublic String readUTF() throws IOException
readUTF 在接口中 DataInputreadUTF 在类中 NativeJavaObjectInputIOExceptionpublic Object readObject() throws IOException, ClassNotFoundException
readObject 在接口中 ObjectInputreadObject 在类中 NativeJavaObjectInputIOExceptionClassNotFoundExceptionpublic <T> T readObject(Class<T> cls) throws IOException, ClassNotFoundException
readObject 在接口中 ObjectInputreadObject 在类中 NativeJavaObjectInputIOExceptionClassNotFoundExceptionpublic <T> T readObject(Class<T> cls, Type type) throws IOException, ClassNotFoundException
readObject 在接口中 ObjectInputreadObject 在类中 NativeJavaObjectInputIOExceptionClassNotFoundExceptionCopyright © 2011–2019 The Apache Software Foundation. All rights reserved.