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
int
available()
void
close()
int
read()
int
read(byte[] b)
int
read(byte[] b, int off, int len)
Object
readObject()
long
skip(long n)
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytes
readObject
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 read
off
- the start offset of the data
len
- 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.
Copyright © 2004, 2010 Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4