public class JavaObjectInput extends NativeJavaObjectInput
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_BYTE_ARRAY_LENGTH |
| Constructor and Description |
|---|
JavaObjectInput(InputStream is) |
JavaObjectInput(InputStream is,
boolean compacted) |
| Modifier and Type | Method and Description |
|---|---|
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, readShortequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreadAttachments, readEvent, readThrowablepublic 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 in interface DataInputreadBytes in class NativeJavaObjectInputIOExceptionpublic String readUTF() throws IOException
readUTF in interface DataInputreadUTF in class NativeJavaObjectInputIOExceptionpublic Object readObject() throws IOException, ClassNotFoundException
readObject in interface ObjectInputreadObject in class NativeJavaObjectInputIOExceptionClassNotFoundExceptionpublic <T> T readObject(Class<T> cls) throws IOException, ClassNotFoundException
readObject in interface ObjectInputreadObject in class NativeJavaObjectInputIOExceptionClassNotFoundExceptionpublic <T> T readObject(Class<T> cls, Type type) throws IOException, ClassNotFoundException
readObject in interface ObjectInputreadObject in class NativeJavaObjectInputIOExceptionClassNotFoundExceptionCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.