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 and Description |
---|
OutputStreamByteOutput(OutputStream outputStream)
Construct a new instance.
|
Modifier and Type | Method and 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. |
close, flush, write, write
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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 © 2017 JBoss by Red Hat. All rights reserved.