public class ByteBufferOutputStream extends OutputStream
ByteBuffer so it can be used like an OutputStream. This is similar to a
ByteArrayOutputStream, just that this uses a ByteBuffer instead of a
byte[] as internal storage.| Constructor and Description |
|---|
ByteBufferOutputStream(ByteBuffer wrappedBuffer,
boolean... autoEnlarge) |
| Modifier and Type | Method and Description |
|---|---|
ByteBuffer |
buffer() |
int |
position() |
void |
position(int i) |
void |
write(byte[] bytes) |
void |
write(byte[] bytes,
int off,
int len) |
void |
write(ByteBuffer input) |
void |
write(int bty) |
close, flushpublic ByteBufferOutputStream(ByteBuffer wrappedBuffer, boolean... autoEnlarge)
public ByteBuffer buffer()
public void write(int bty)
write in class OutputStreampublic void write(byte[] bytes)
write in class OutputStreampublic void write(byte[] bytes,
int off,
int len)
write in class OutputStreampublic void position(int i)
public int position()
public void write(ByteBuffer input)
Copyright © 2020 GSI Helmholtzzentrum für Schwerionenforschung GmbH. All rights reserved.