public interface MessageBufferOutput
extends java.io.Closeable, java.io.Flushable
| Modifier and Type | Method and Description |
|---|---|
void |
add(byte[] buffer,
int offset,
int length)
Writes an external payload data.
|
MessageBuffer |
next(int minimumSize)
Allocates the next buffer for writing message packed data.
|
void |
write(byte[] buffer,
int offset,
int length)
Writes an external payload data.
|
void |
writeBuffer(int length)
Flushes the previously allocated buffer.
|
MessageBuffer next(int minimumSize) throws java.io.IOException
minimumSize - the mimium required buffer size to allocatejava.io.IOExceptionvoid writeBuffer(int length)
throws java.io.IOException
length - the size of buffer to flushjava.io.IOExceptionvoid write(byte[] buffer,
int offset,
int length)
throws java.io.IOException
buffer - the data to writeoffset - the start offset in the datalength - the number of bytes to writejava.io.IOExceptionvoid add(byte[] buffer,
int offset,
int length)
throws java.io.IOException
buffer - the data to addoffset - the start offset in the datalength - the number of bytes to addjava.io.IOException