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, writeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwrite, writepublic 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 ByteOutputwrite in class FilterOutputStreamb - the dataoff - the start offset in the datalen - the number of bytes to writeIOException - if an I/O error occursCopyright © 2012 JBoss by Red Hat. All Rights Reserved.