This
interface extends the DataInput interface and adds
methods for deserializing objects and reading bytes and arrays of
bytes.
![](http://87.249.105.167/mirror/javainanutshell/0596007736/images/0596007736/figs/java.io.ObjectInput.gif;389354)
public interface ObjectInput extends DataInput {
// Public Instance Methods
int available( ) throws IOException;
void close( ) throws IOException;
int read( ) throws IOException;
int read(byte[ ] b) throws IOException;
int read(byte[ ] b, int off, int len) throws IOException;
Object readObject( ) throws ClassNotFoundException, IOException;
long skip(long n) throws IOException;
}