public Object readObject ()

Reads the next object from the underlying input stream.

Returns:  the next object read

Exceptions:
ArrayIndexOutOfBoundsException    if the stream contains no objects (or no more objects)

See also:
XMLEncoder.writeObject