saker.util Documentation TaskDoc JavaDoc Packages
public interface ObjectOutputByteSink extends DataOutputByteSink, ObjectOutput
Interface extending ObjectOutput and ByteSink.

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

Methods
public void
Closes the stream.
public void
Flushes the stream.
public default void
write(int b)
Writes a byte.
public void
write(byte[] b)
Writes an array of bytes.
public void
write(byte[] b, int off, int len)
Writes a sub array of bytes.
public void
Write an object to the underlying storage or stream.
public abstract void close() throws IOException
Overridden from: ObjectOutput
Closes the stream. This method must be called to release any resources associated with the stream.
IOExceptionIf an I/O error has occurred.
public abstract void flush() throws IOException
Overridden from: ObjectOutput
Flushes the stream. This will write any buffered output bytes.
IOExceptionIf an I/O error has occurred.
public default void write(int b) throws IOException
Overridden from: ObjectOutput
Writes a byte. This method will block until the byte is actually written.
bthe byte
IOExceptionIf an I/O error has occurred.
public abstract void write(byte[] b) throws IOException
Overridden from: ObjectOutput
Writes an array of bytes. This method will block until the bytes are actually written.
bthe data to be written
IOExceptionIf an I/O error has occurred.
public abstract void write(byte[] b, int off, int len) throws IOException
Overridden from: ObjectOutput
Writes a sub array of bytes.
bthe data to be written
offthe start offset in the data
lenthe number of bytes that are written
IOExceptionIf an I/O error has occurred.
public abstract void writeObject(Object obj) throws IOException
Overridden from: ObjectOutput
Write an object to the underlying storage or stream. The class that implements this interface defines how the object is written.
objthe object to be written
IOExceptionAny of the usual Input/Output related exceptions.