
public abstract class AbstractObjectInput extends SimpleDataInput implements java.io.ObjectInput
buffer, limit, positionbyteInput| Modifier | Constructor and Description |
|---|---|
protected |
AbstractObjectInput(int bufferSize)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract java.lang.Object |
doReadObject(boolean unshared)
Implementation of the actual object-reading method.
|
java.lang.Object |
readObject() |
<T> T |
readObject(java.lang.Class<T> type)
Read and return an object, cast to a specific type.
|
java.lang.Object |
readObjectUnshared()
Read and return an unshared object.
|
<T> T |
readObjectUnshared(java.lang.Class<T> type)
Read and return an unshared object, cast to a specific type.
|
available, close, finish, read, read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readIntDirect, readLine, readLong, readLongDirect, readShort, readUnsignedByte, readUnsignedByteDirect, readUnsignedShort, readUTF, skip, skipBytes, startprotected AbstractObjectInput(int bufferSize)
bufferSize - the buffer size to usepublic final java.lang.Object readObject()
throws java.lang.ClassNotFoundException,
java.io.IOException
readObject in interface java.io.ObjectInputjava.lang.ClassNotFoundExceptionjava.io.IOExceptionpublic final java.lang.Object readObjectUnshared()
throws java.lang.ClassNotFoundException,
java.io.IOException
java.lang.ClassNotFoundException - if the class of a serialized object cannot be foundjava.io.IOException - if an error occursprotected abstract java.lang.Object doReadObject(boolean unshared)
throws java.lang.ClassNotFoundException,
java.io.IOException
unshared - true if the instance should be unshared, false if it is sharedjava.lang.ClassNotFoundException - if the class for the object could not be loadedjava.io.IOException - if an I/O error occurspublic <T> T readObject(java.lang.Class<T> type)
throws java.lang.ClassNotFoundException,
java.io.IOException
T - the object typetype - the object classjava.lang.ClassNotFoundException - if the class of a serialized object cannot be foundjava.io.InvalidObjectException - if the object is not of the expected typejava.io.IOException - if an error occurspublic <T> T readObjectUnshared(java.lang.Class<T> type)
throws java.lang.ClassNotFoundException,
java.io.IOException
T - the object typetype - the object classjava.lang.ClassNotFoundException - if the class of a serialized object cannot be foundjava.io.InvalidObjectException - if the object is not of the expected typejava.io.IOException - if an error occursCopyright © 2011 JBoss, a division of Red Hat, Inc.