Interface java.io.ObjectInput
All Packages Class Hierarchy This Package Previous Next Index
Interface java.io.ObjectInput
- public interface ObjectInput
- extends Object
- extends DataInput
ObjectInput extends the DataInput interface to include the writing of
ojbects. While DataInput includes methods for the input of primitive types,
ObjectInput extends that interface to include objects, arrays, and Strings.
- See Also:
- InputStream, ObjectOutputStream, ObjectInputStream
-
readObject()
- Read and return an object.
readObject
public abstract Object readObject() throws ClassNotFoundException, IOException
- Read and return an object. The class that implements this interface
defines where the object is "read" from.
- Throws: ClassNotFoundException
- if the class of a serialized
object cannot be found.
- Throws: IOException
- if any of the usual Input/Output related exceptions
occur.
All Packages Class Hierarchy This Package Previous Next Index