package saker.build.file
StreamWritable implementation that is backed by a byte array.
public | Creates a new instance for the given array region. |
public | ByteArrayStreamWritable( Creates a new instance for the given array. |
public ByteArrayRegion | getData() Gets the byte array region that this class holds. |
public void | writeTo( Writes the contents to the parameter stream. |
public void | Writes the contents to the parameter stream. |
Creates a new instance for the given array region.
dataThe byte array region.
NullPointerExceptionIf the argument is
null
.Creates a new instance for the given array.
dataThe byte array.
NullPointerExceptionIf the argument is
null
.Gets the byte array region that this class holds.
The byte array region.
Overridden from: StreamWritable
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.
Overridden from: StreamWritable
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.