saker.build Documentation TaskDoc JavaDoc Packages
public interface StreamWritable
Interface representing content which can be used to write out to a stream.
Methods
public void
Writes the contents to the parameter stream.
public default void
Writes the contents to the parameter stream.
Writes the contents to the parameter stream.

The method implementations mustn't close the argument output.

osThe stream to write the contents to.
IOExceptionIn case of I/O error.
NullPointerExceptionIf the stream is null.
public default void writeTo(ByteSink sink) throws IOException, NullPointerException
Writes the contents to the parameter stream.

The method implementations mustn't close the argument output.

sinkThe stream to write the contents to.
IOExceptionIn case of I/O error.
NullPointerExceptionIf the stream is null.