package saker.util.io
Interface extending ObjectInput and ByteSource.
The interface is present to have proper RMI annotation for implementations that possibly implement both of the specified interfaces.
public int | Returns the number of bytes that can be read
without blocking. |
public void | close() Closes the input stream. |
public default int | read() Reads a byte of data. |
public int | read( Reads into an array of bytes. |
public int | read( Reads into an array of bytes. |
public Object | Read and return an object. |
public default long | skip( Skips n bytes of input. |
From: DataInputByteSource |
From: ByteSource |
Overridden from: ObjectInput
Returns the number of bytes that can be read
without blocking.
the number of available bytes.
IOExceptionIf an I/O error has occurred.
Overridden from: ObjectInput
Closes the input stream. Must be called
to release any resources associated with
the stream.
IOExceptionIf an I/O error has occurred.
Overridden from: ObjectInput
Reads a byte of data. This method will block if no input is
available.
the byte read, or -1 if the end of the
stream is reached.
IOExceptionIf an I/O error has occurred.
Overridden from: ObjectInput
Reads into an array of bytes. This method will
block until some input is available.
bthe buffer into which the data is read
the actual number of bytes read, -1 is
returned when the end of the stream is reached.
IOExceptionIf an I/O error has occurred.
Overridden from: ObjectInput
Reads into an array of bytes. This method will
block until some input is available.
bthe buffer into which the data is read
offthe start offset of the data
lenthe maximum number of bytes read
the actual number of bytes read, -1 is
returned when the end of the stream is reached.
IOExceptionIf an I/O error has occurred.
Overridden from: ObjectInput
Read and return an object. The class that implements this interface
defines where the object is "read" from.
the object read from the stream
ClassNotFoundExceptionIf the class of a serialized
object cannot be found.
IOExceptionIf any of the usual Input/Output
related exceptions occur.
Overridden from: ObjectInput
Skips n bytes of input.
nthe number of bytes to be skipped
the actual number of bytes skipped.
IOExceptionIf an I/O error has occurred.