public class ByteBuffer extends BufferedBuffer implements BaseItem
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
buffer
The buffer.
|
lengthposition, STOPCHARSJSON, STOPCHARSXML, STOPCHARSXMLENDSPACE| Constructor and Description |
|---|
ByteBuffer() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(byte bytes) |
boolean |
add(byte[] bytes) |
boolean |
add(java.lang.Byte[] bytes) |
boolean |
add(int bytes) |
boolean |
add(java.lang.Object... values)
Add Elements to List or KeyValue
if param Modulo 2 the Params can be Key,Value
or add all Values to List
|
protected boolean |
addBytes(java.lang.Object bytes,
int len) |
static ByteBuffer |
allocate(int len) |
byte[] |
array() |
byte |
byteAt(int index) |
char |
charAt(int index) |
ByteBuffer |
flip(boolean preFirst) |
byte |
getByte() |
java.lang.Byte[] |
getBytes() |
char |
getChar() |
ByteBuffer |
getNewBuffer(byte[] array) |
ByteBuffer |
getNewBuffer(int capacity) |
BaseItem |
getNewList(boolean keyValue) |
byte[] |
getValue(int start,
int len) |
void |
put(byte value) |
void |
put(byte[] value) |
void |
put(byte[] value,
int offset,
int length) |
void |
put(char value) |
void |
put(double value) |
void |
put(float value) |
void |
put(int value) |
void |
put(long value) |
void |
put(short value) |
int |
size()
Get the Size of Elements
|
java.lang.String |
string() |
CharacterBuffer |
subSequence(int start,
int end)
Substring of Buffer
|
byte[] |
toBytes() |
java.lang.String |
toString()
Convert Element to String
|
java.lang.String |
toString(Converter converter)
Convert Element to String
|
ByteBuffer |
with(byte value) |
ByteBuffer |
with(byte[] array) |
ByteBuffer |
with(byte[] array,
int len) |
ByteBuffer |
with(java.lang.String string) |
ByteBuffer |
withBufferLength(int length) |
back, getCurrentChar, getNextString, isEnd, length, nextString, nextValue, parseString, substring, withLength, withLookAHead, withLookAHead, withPositionarray, checkValues, getDouble, getFloat, getInt, getLong, getShort, getString, getStringList, isEmpty, nextClean, nextString, nextString, nextToken, nextValue, position, readLine, remaining, skip, skip, skipChar, skipTo, skipTo, splitStringspublic char charAt(int index)
charAt in class BufferedBufferpublic byte byteAt(int index)
byteAt in class BufferedBufferpublic CharacterBuffer subSequence(int start, int end)
BufferedBuffersubSequence in class BufferedBufferstart - startindex for parsingend - the endPosition of Substringpublic ByteBuffer withBufferLength(int length)
public char getChar()
getChar in interface BufferItemgetChar in class Bufferpublic byte getByte()
getByte in interface BufferItemgetByte in class Bufferpublic java.lang.Byte[] getBytes()
public byte[] toBytes()
public byte[] getValue(int start,
int len)
public byte[] array()
public boolean add(byte bytes)
public boolean add(int bytes)
public boolean add(java.lang.Byte[] bytes)
public boolean add(byte[] bytes)
protected boolean addBytes(java.lang.Object bytes,
int len)
public void put(byte value)
public void put(short value)
public void put(int value)
public void put(long value)
public void put(char value)
public void put(float value)
public void put(double value)
public void put(byte[] value)
public void put(byte[] value,
int offset,
int length)
public ByteBuffer flip(boolean preFirst)
public ByteBuffer getNewBuffer(int capacity)
public static ByteBuffer allocate(int len)
public ByteBuffer getNewBuffer(byte[] array)
public ByteBuffer with(java.lang.String string)
public ByteBuffer with(byte[] array)
public ByteBuffer with(byte value)
public java.lang.String toString()
BaseItempublic BaseItem getNewList(boolean keyValue)
getNewList in interface BaseItempublic int size()
BaseItempublic java.lang.String string()
public java.lang.String toString(Converter converter)
BaseItempublic ByteBuffer with(byte[] array, int len)
public boolean add(java.lang.Object... values)
BaseItem