AutoCloseable
, DataInput
ObjectInputStream
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.
int
Returns the number of bytes that can be read without blocking.
void
int
int
Reads into an array of bytes.
int
read(byte[] b, int off, int len)
Reads into an array of bytes.
Read and return an object.
long
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytes
Read and return an object. The class that implements this interface defines where the object is "read" from.
ClassNotFoundException
- If the class of a serialized object cannot be found.
IOException
- If any of the usual Input/Output related exceptions occur.
Reads a byte of data. This method will block if no input is available.
IOException
- If an I/O error has occurred.
Reads into an array of bytes. This method will block until some input is available.
b
- the buffer into which the data is read
-1
if there is no more data because the end of the stream has been reached.
IOException
- If an I/O error has occurred.
throws
IOExceptionReads into an array of bytes. This method will block until some input is available.
b
- the buffer into which the data is read
off
- the start offset of the data
len
- the maximum number of bytes read
-1
if there is no more data because the end of the stream has been reached.
IOException
- If an I/O error has occurred.
IndexOutOfBoundsException
- If off
is negative, len
is negative, or len
is greater than b.length - off
Skips n bytes of input.
n
- the number of bytes to be skipped
IOException
- If an I/O error has occurred.
Returns the number of bytes that can be read without blocking.
IOException
- If an I/O error has occurred.
Closes the input stream. Must be called to release any resources associated with the stream.
close
in interface AutoCloseable
IOException
- If an I/O error has occurred.
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