public interface IApimanBuffer
getNativeBuffer() where possible to
reduce repackaging overhead.| Modifier and Type | Method and Description |
|---|---|
void |
append(byte b) |
void |
append(byte[] bytes) |
void |
append(byte[] bytes,
int offset,
int length)
Byte array to append with given offset and length.
|
void |
append(IApimanBuffer buffer) |
void |
append(IApimanBuffer buffer,
int offset,
int length) |
void |
append(String string) |
void |
append(String string,
String encoding) |
byte |
get(int index) |
byte[] |
getBytes() |
byte[] |
getBytes(int start,
int end)
Get ApimanBuffer as byte array constrained by indices.
|
Object |
getNativeBuffer()
Get encapsulated native buffer.
|
String |
getString(int start,
int end) |
String |
getString(int start,
int end,
String encoding) |
void |
insert(int index,
byte[] b)
Inserts data from byte array into the index location.
|
void |
insert(int index,
byte[] b,
int offset,
int length)
Inserts data from the byte array constrained by offset and length.
|
void |
insert(int index,
IApimanBuffer buffer)
Inserts data at given index with buffer.
|
void |
insert(int index,
IApimanBuffer buffer,
int offset,
int length)
Inserts data at the given index with buffer at given offset and constrained length.
|
void |
insert(int index,
String string)
Inserts data at index from value of string.
|
void |
insert(int index,
String string,
String encoding)
Inserts data at index from value of string.
|
int |
length() |
void |
set(int index,
byte b) |
String |
toString() |
String |
toString(String encoding) |
Object getNativeBuffer()
int length()
void insert(int index,
IApimanBuffer buffer)
index - buffer - void insert(int index,
IApimanBuffer buffer,
int offset,
int length)
index - ApimanBuffer indexbuffer - Provided bufferoffset - Provided buffer offset indexlength - Provided buffer maximum length to setvoid append(IApimanBuffer buffer)
buffer - Buffer to appendvoid append(IApimanBuffer buffer, int offset, int length)
buffer - Buffer to appendoffset - Provided buffer offsetlength - Provided buffer maximum length to appendbyte get(int index)
index - Index of byte to retrieveIndexOutOfBoundsExceptionvoid set(int index,
byte b)
index - Index of byte to setb - Byte value to setvoid append(byte b)
b - Byte value to appendbyte[] getBytes()
byte[] getBytes(int start,
int end)
start - Start index inclusiveend - End index exclusivevoid insert(int index,
byte[] b)
index - Start indexb - Byte array to setvoid insert(int index,
byte[] b,
int offset,
int length)
index - ApimanBuffer start indexb - Byte Array to setoffset - Byte array start indexlength - Byte array maximum length to appendvoid append(byte[] bytes)
bytes - Byte array to append.void append(byte[] bytes,
int offset,
int length)
bytes - Byte array to appendoffset - Byte array start indexlength - Maximum length to appendString getString(int start, int end)
start - start indexend - end indexString getString(int start, int end, String encoding) throws UnsupportedEncodingException
start - start indexend - end indexencoding - string encodingUnsupportedEncodingExceptionvoid insert(int index,
String string)
index - ApimanBuffer indexstring - String to set as bytesvoid insert(int index,
String string,
String encoding)
throws UnsupportedEncodingException
index - ApimanBuffer indexstring - String to set as bytesstring - Encoding of stringUnsupportedEncodingExceptionvoid append(String string)
string - String to appendvoid append(String string, String encoding) throws UnsupportedEncodingException
string - String to appendencoding - Encoding of stringUnsupportedEncodingExceptionString toString()
String toString(String encoding) throws UnsupportedEncodingException
encoding - Encoding of stringUnsupportedEncodingExceptionCopyright © 2014 JBoss, a division of Red Hat. All rights reserved.