public class OutputStreamByteOutput extends java.io.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
.Constructor and Description |
---|
OutputStreamByteOutput(java.io.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. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
write, write
public OutputStreamByteOutput(java.io.OutputStream outputStream)
outputStream
- the output stream to write topublic void write(byte[] b, int off, int len) throws java.io.IOException
len
bytes from the specified byte
array starting at offset off
to this
output stream.write
in interface ByteOutput
write
in class java.io.FilterOutputStream
b
- the dataoff
- the start offset in the datalen
- the number of bytes to writejava.io.IOException
- if an I/O error occursCopyright © 2011 JBoss, a division of Red Hat, Inc.