public class ExpandableDirectBufferOutputStream
extends java.io.OutputStream
OutputStream that wraps an underlying expandable version of a MutableDirectBuffer.| Constructor and Description |
|---|
ExpandableDirectBufferOutputStream() |
ExpandableDirectBufferOutputStream(MutableDirectBuffer buffer) |
ExpandableDirectBufferOutputStream(MutableDirectBuffer buffer,
int offset) |
| Modifier and Type | Method and Description |
|---|---|
MutableDirectBuffer |
buffer()
The underlying buffer being wrapped.
|
void |
close() |
int |
offset()
The offset within the underlying buffer at which to start.
|
int |
position()
The position in the buffer from the offset up to which has been written.
|
void |
wrap(MutableDirectBuffer buffer)
Wrap a given buffer beginning with an offset of 0.
|
void |
wrap(MutableDirectBuffer buffer,
int offset)
Wrap a given buffer beginning at an offset.
|
void |
write(byte[] srcBytes,
int srcOffset,
int length)
Write a byte[] to the buffer.
|
void |
write(int b)
Write a byte to buffer.
|
public ExpandableDirectBufferOutputStream()
public ExpandableDirectBufferOutputStream(MutableDirectBuffer buffer)
public ExpandableDirectBufferOutputStream(MutableDirectBuffer buffer, int offset)
public void wrap(MutableDirectBuffer buffer)
buffer - to wrappublic void wrap(MutableDirectBuffer buffer, int offset)
buffer - to wrapoffset - at which the puts will occur.public int position()
public int offset()
public MutableDirectBuffer buffer()
public void write(int b)
write in class java.io.OutputStreamb - to be written.public void write(byte[] srcBytes,
int srcOffset,
int length)
write in class java.io.OutputStreamsrcBytes - to writesrcOffset - at which to begin reading bytes from the srcBytes.length - of the srcBytes to read.public void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.OutputStreamCopyright © 2014-2019 Real Logic Ltd. All Rights Reserved.