| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected abstract Object | Returns: the object to readtrue if the instance should be unshared, false if it is sharedImplementation of the actual object-reading method. |
| public final Object | |
| public < the object type T> T | Returns: the object read from the streamthe object class type)Read and return an object, cast to a specific type. |
| public final Object | |
| public < the object type T> T | Returns: an unshared objectthe object class type)Read and return an unshared object, cast to a specific type. |
| private static InvalidObjectException |
| AbstractObjectInput | back to summary |
|---|---|
| protected AbstractObjectInput(int bufferSize) Construct a new instance.
| |
| doReadObject | back to summary |
|---|---|
| protected abstract Object doReadObject(boolean unshared) throws ClassNotFoundException, IOException Implementation of the actual object-reading method.
| |
| readObject | back to summary |
|---|---|
| public final Object readObject() throws ClassNotFoundException, IOException Implements java. Doc from java. Read and return an object. The class that implements this interface defines where the object is "read" from.
| |
| readObject | back to summary |
|---|---|
| public <T> T readObject(final Class<T> type) throws ClassNotFoundException, IOException Read and return an object, cast to a specific type.
| |
| readObjectUnshared | back to summary |
|---|---|
| public final Object readObjectUnshared() throws ClassNotFoundException, IOException Read and return an unshared object.
| |
| readObjectUnshared | back to summary |
|---|---|
| public <T> T readObjectUnshared(final Class<T> type) throws ClassNotFoundException, IOException Read and return an unshared object, cast to a specific type.
| |
| wrongType | back to summary |
|---|---|
| private static InvalidObjectException wrongType(final ClassCastException e, final Class<?> expected, final Class<?> actual) | |