public class ByteBuffer extends Object implements io.apiman.gateway.engine.io.IApimanBuffer
IApimanBuffer from a byte array.| Constructor and Description |
|---|
ByteBuffer(int size)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
append(byte b) |
void |
append(byte[] bytes) |
void |
append(byte[] bytes,
int offset,
int length) |
void |
append(io.apiman.gateway.engine.io.IApimanBuffer buffer) |
void |
append(io.apiman.gateway.engine.io.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) |
int |
getBytesInBuffer() |
Object |
getNativeBuffer() |
String |
getString(int start,
int end) |
String |
getString(int start,
int end,
String encoding) |
void |
insert(int index,
byte[] b) |
void |
insert(int index,
byte[] b,
int offset,
int length) |
void |
insert(int index,
io.apiman.gateway.engine.io.IApimanBuffer buffer) |
void |
insert(int index,
io.apiman.gateway.engine.io.IApimanBuffer buffer,
int offset,
int length) |
void |
insert(int index,
String string) |
void |
insert(int index,
String string,
String encoding) |
int |
length() |
int |
readFrom(InputStream stream)
Reads from the input stream.
|
void |
set(int index,
byte b) |
String |
toString() |
String |
toString(String encoding) |
public Object getNativeBuffer()
getNativeBuffer in interface io.apiman.gateway.engine.io.IApimanBufferIApimanBuffer.getNativeBuffer()public int length()
length in interface io.apiman.gateway.engine.io.IApimanBufferIApimanBuffer.length()public void insert(int index,
io.apiman.gateway.engine.io.IApimanBuffer buffer)
insert in interface io.apiman.gateway.engine.io.IApimanBufferIApimanBuffer.insert(int, io.apiman.gateway.engine.io.IApimanBuffer)public void insert(int index,
io.apiman.gateway.engine.io.IApimanBuffer buffer,
int offset,
int length)
insert in interface io.apiman.gateway.engine.io.IApimanBufferIApimanBuffer.insert(int, io.apiman.gateway.engine.io.IApimanBuffer, int, int)public void append(io.apiman.gateway.engine.io.IApimanBuffer buffer)
append in interface io.apiman.gateway.engine.io.IApimanBufferIApimanBuffer.append(io.apiman.gateway.engine.io.IApimanBuffer)public void append(io.apiman.gateway.engine.io.IApimanBuffer buffer,
int offset,
int length)
append in interface io.apiman.gateway.engine.io.IApimanBufferIApimanBuffer.append(io.apiman.gateway.engine.io.IApimanBuffer, int, int)public byte get(int index)
get in interface io.apiman.gateway.engine.io.IApimanBufferio.apiman.gateway.engine.io.IApimanBuffer#getByte(int)public void set(int index,
byte b)
set in interface io.apiman.gateway.engine.io.IApimanBufferIApimanBuffer.set(int, byte)public void append(byte b)
append in interface io.apiman.gateway.engine.io.IApimanBufferIApimanBuffer.append(byte)public byte[] getBytes()
getBytes in interface io.apiman.gateway.engine.io.IApimanBufferIApimanBuffer.getBytes()public byte[] getBytes(int start,
int end)
getBytes in interface io.apiman.gateway.engine.io.IApimanBufferIApimanBuffer.getBytes(int, int)public void insert(int index,
byte[] b)
insert in interface io.apiman.gateway.engine.io.IApimanBufferIApimanBuffer.insert(int, byte[])public void insert(int index,
byte[] b,
int offset,
int length)
insert in interface io.apiman.gateway.engine.io.IApimanBufferIApimanBuffer.insert(int, byte[], int, int)public void append(byte[] bytes)
append in interface io.apiman.gateway.engine.io.IApimanBufferIApimanBuffer.append(byte[])public void append(byte[] bytes,
int offset,
int length)
append in interface io.apiman.gateway.engine.io.IApimanBufferIApimanBuffer.append(byte[], int, int)public String getString(int start, int end)
getString in interface io.apiman.gateway.engine.io.IApimanBufferIApimanBuffer.getString(int, int)public String getString(int start, int end, String encoding)
getString in interface io.apiman.gateway.engine.io.IApimanBufferIApimanBuffer.getString(int, int, java.lang.String)public void insert(int index,
String string)
insert in interface io.apiman.gateway.engine.io.IApimanBufferIApimanBuffer.insert(int, java.lang.String)public void insert(int index,
String string,
String encoding)
insert in interface io.apiman.gateway.engine.io.IApimanBufferIApimanBuffer.insert(int, java.lang.String, java.lang.String)public void append(String string)
append in interface io.apiman.gateway.engine.io.IApimanBufferIApimanBuffer.append(java.lang.String)public void append(String string, String encoding) throws UnsupportedEncodingException
append in interface io.apiman.gateway.engine.io.IApimanBufferUnsupportedEncodingExceptionIApimanBuffer.append(java.lang.String, java.lang.String)public String toString(String encoding)
toString in interface io.apiman.gateway.engine.io.IApimanBufferIApimanBuffer.toString(java.lang.String)public String toString()
toString in interface io.apiman.gateway.engine.io.IApimanBuffertoString in class ObjectObject.toString()public int getBytesInBuffer()
public int readFrom(InputStream stream) throws IOException
stream - IOExceptionCopyright © 2015 JBoss, a division of Red Hat. All rights reserved.