|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||


public interface ObjectInput

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.
InputStream
,
ObjectOutputStream
,
ObjectInputStream

| Method Summary | |
|---|---|
int |
available
Returns the number of bytes that can be read without blocking. |
void |
close
Closes the input stream. |
int |
read
Reads a byte of data. |
int |
read
Reads into an array of bytes. |
int |
read
Reads into an array of bytes. |
Object |
readObject
Read and return an object. |
long |
skip
Skips n bytes of input. |
Methods inherited from interface java.io.DataInput ![]() |
|---|
readBoolean |
| Method Detail |
|---|

Object![]()
![]()
readObject() throws ClassNotFoundException
![]()
![]()
, IOException
![]()
![]()
ClassNotFoundException

- If the class of a serialized
object cannot be found.
IOException

- If any of the usual Input/Output
related exceptions occur.

int read()
throws IOException

IOException

- If an I/O error has occurred.

int read(byte[] b)
throws IOException

b - the buffer into which the data is read
IOException

- If an I/O error has occurred.

int read(byte[] b,
int off,
int len)
throws IOException

b - the buffer into which the data is readoff - the start offset of the datalen - the maximum number of bytes read
IOException

- If an I/O error has occurred.

long skip(long n)
throws IOException

n - the number of bytes to be skipped
IOException

- If an I/O error has occurred.

int available()
throws IOException

IOException

- If an I/O error has occurred.

void close()
throws IOException

IOException

- If an I/O error has occurred.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||