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.
|
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)
throws java.io.IOException
write in class java.io.OutputStreamb - to be written.java.io.IOExceptionpublic void write(byte[] srcBytes,
int srcOffset,
int length)
throws java.io.IOException
write in class java.io.OutputStreamsrcBytes - to writesrcOffset - at which to begin reading bytes from the srcBytes.length - of the srcBytes to read.java.io.IOExceptionCopyright © 2014 - 2016 Real Logic Ltd. All Rights Reserved.