saker.util Documentation TaskDoc JavaDoc Packages
public interface ObjectInputByteSource extends DataInputByteSource, ObjectInput
Interface extending ObjectInput and ByteSource.

The interface is present to have proper RMI annotation for implementations that possibly implement both of the specified interfaces.

Methods
public int
Returns the number of bytes that can be read without blocking.
public void
Closes the input stream.
public default int
Reads a byte of data.
public int
read(byte[] b)
Reads into an array of bytes.
public int
read(byte[] b, int off, int len)
Reads into an array of bytes.
public Object
Read and return an object.
public default long
skip(long n)
Skips n bytes of input.
public abstract int available() throws IOException
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.
public abstract void close() throws IOException
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.
public default int read() throws IOException
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.
public abstract int read(byte[] b) throws IOException
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.
public abstract int read(byte[] b, int off, int len) throws IOException
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.
public default long skip(long n) throws IOException
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.