ObjectInput:
The ObjectInput interface extends the DataInput interface and declares the methods. That support object serialization. Remember that especially the readObject() method. This is known to deserialize an object. Whole of these methods will throw an IOException on error conditions.
Methods Description
int avilable() Returns the number of bytes that are now available in the input buffer.
void close() Closes the invoking stream. Further read attempts will generate an IOException.
int read() Returns an integer representation of the next avialable byte of input. -1 is returned when the end of the file is encountered.
long skip(long numBytes) Ignores, numBytes bytes in the invoking stream, returning the number of bytes actually ignored.