Closeable
, Flushable
, AutoCloseable
, ByteOutput
public class OutputStreamByteOutput extends FilterOutputStream implements ByteOutput
OutputStream
which implements ByteInput
and reads data from another OutputStream
.
Usually the Marshalling.createByteOutput(java.nio.ByteBuffer)
method should be used to create instances because
it can detect when the target already extends OutputStream
.out
Constructor | Description |
---|---|
OutputStreamByteOutput(OutputStream outputStream) |
Construct a new instance.
|
Modifier and Type | Method | Description |
---|---|---|
void |
write(byte[] b,
int off,
int len) |
Writes
len bytes from the specified byte array starting at offset off to this
output stream. |
write, write
close, flush, write, write
public OutputStreamByteOutput(OutputStream outputStream)
outputStream
- the output stream to write topublic void write(byte[] b, int off, int len) throws IOException
len
bytes from the specified byte
array starting at offset off
to this
output stream.write
in interface ByteOutput
write
in class FilterOutputStream
b
- the dataoff
- the start offset in the datalen
- the number of bytes to writeIOException
- if an I/O error occursCopyright © 2019 JBoss by Red Hat. All rights reserved.