public class ByteBufferBackedOutputStream extends OutputStream
OutputStream
implementation that appends content
written in given ByteBuffer
instance.Modifier and Type | Field and Description |
---|---|
protected ByteBuffer |
_b |
Constructor and Description |
---|
ByteBufferBackedOutputStream(ByteBuffer buf) |
Modifier and Type | Method and Description |
---|---|
void |
write(byte[] bytes,
int off,
int len) |
void |
write(int b) |
close, flush, write
protected final ByteBuffer _b
public ByteBufferBackedOutputStream(ByteBuffer buf)
public void write(int b) throws IOException
write
in class OutputStream
IOException
public void write(byte[] bytes, int off, int len) throws IOException
write
in class OutputStream
IOException
Copyright © 2019 JBoss by Red Hat. All rights reserved.