| java.io.ObjectInput |
Known Indirect Subclasses
|
Streams to be used with serialization to read objects must implement this interface. ObjectInputStream is one example.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Returns a int representing then number of bytes of primitive data that
are available.
| |||||||||||
Close this ObjectInput.
| |||||||||||
Reads at most
count bytes from the ObjectInput and stores
them in byte array buffer starting at offset
count. | |||||||||||
Reads bytes from the
ObjectInput and stores them in byte
array buffer. | |||||||||||
Reads a single byte from this ObjectInput and returns the result as an
int.
| |||||||||||
Reads the next object from this ObjectInput.
| |||||||||||
Skips
toSkip number of bytes in this ObjectInput. | |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From interface java.io.DataInput
| |||||||||||
Returns a int representing then number of bytes of primitive data that are available.
| IOException | If an error occurs in this ObjectInput. |
|---|
Close this ObjectInput. Concrete implementations of this class should free any resources during close.
| IOException | If an error occurs attempting to close this ObjectInput. |
|---|
Reads at most count bytes from the ObjectInput and stores
them in byte array buffer starting at offset
count. Answer the number of bytes actually read or -1 if
no bytes were read and end of ObjectInput was encountered.
| buffer | the byte array in which to store the read bytes. |
|---|---|
| offset | the offset in buffer to store the read bytes. |
| count | the maximum number of bytes to store in buffer. |
| IOException | If the ObjectInput is already closed or another IOException occurs. |
|---|
Reads bytes from the ObjectInput and stores them in byte
array buffer. Blocks while waiting for input.
| buffer | the array in which to store the read bytes. |
|---|
-1 if encountered end
of ObjectInput.| IOException | If the ObjectInput is already closed or
another IOException occurs.
|
|---|
Reads a single byte from this ObjectInput and returns the result as an int. The low-order byte is returned or -1 of the end of stream was encountered.
| IOException | If the ObjectInput is already closed or another IOException occurs. |
|---|
Reads the next object from this ObjectInput.
| IOException | If an error occurs attempting to read from this ObjectInput. |
|---|---|
| ClassNotFoundException | If the object's class cannot be found |
Skips toSkip number of bytes in this ObjectInput.
Subsequent read()'s will not return these bytes.
| toSkip | the number of bytes to skip. |
|---|
| IOException | If the ObjectInput is already closed or another IOException occurs. |
|---|