Menu
Topics Index
...
`


Input/Output: Exploring java.io > Serialization >
Siva Nookala - 06 Oct 2016
ObjectInput extends the DataInput interface to include the reading of objects. DataInput includes methods for the input of primitive types, ObjectInput extends that interface to include objects, arrays, and Strings.

ObjectInput Methods :
Method Description
int available() Returns the number of bytes that can be read without blocking.
int read() Reads a byte of data.
int read(byte[] b) Reads into an array of bytes.
Object readObject() Read and return an object.
long skip(long n) Skips n bytes of input.
void close() Closes the input stream.

0
Wrong
Score more than 2 points

© meritcampus 2016 - 2017

All Rights Reserved.