BaseItem, BufferItemDERBufferpublic class ByteBuffer extends BufferedBuffer
| Modifier and Type | Field | Description |
|---|---|---|
protected byte[] |
buffer |
The buffer.
|
ENDLINE, position, STOPCHARSJSON, STOPCHARSXML, STOPCHARSXMLENDlengthQUOTES, SPACE| Constructor | Description |
|---|---|
ByteBuffer() |
| Modifier and Type | Method | Description |
|---|---|---|
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
|
boolean |
addBytes(java.lang.Object value,
int len,
boolean bufferAtEnd) |
|
static ByteBuffer |
allocate(int len) |
|
byte[] |
array() |
|
byte |
byteAt(int index) |
|
char |
charAt(int index) |
|
ByteBuffer |
flip(boolean preFirst) |
|
boolean |
getBit() |
Public API - reads a bit/boolean argument.
|
byte |
getByte() |
|
byte[] |
getBytes(java.lang.Object... parameter) |
Get a Byte Field
|
char |
getChar() |
|
ByteBuffer |
getNewBuffer(byte[] array) |
|
ByteBuffer |
getNewBuffer(int capacity) |
|
ByteBuffer |
getNewList(boolean keyValue) |
|
java.lang.String |
getShortstr() |
Convenience method - reads a short string from a DataInput Stream.
|
byte[] |
getValue(int start,
int len) |
|
boolean |
insert(java.lang.Object item,
boolean bufferAdEnd) |
|
boolean |
put(byte value) |
|
boolean |
put(byte[] value) |
|
void |
put(byte[] value,
int offset,
int length) |
|
boolean |
put(char value) |
|
boolean |
put(double value) |
|
boolean |
put(float value) |
|
boolean |
put(int value) |
|
boolean |
put(long value) |
|
boolean |
put(short value) |
|
boolean |
set(int pos,
byte value) |
|
int |
size() |
Get the Size of Elements
|
java.lang.String |
string() |
|
CharacterBuffer |
subSequence(int start,
int end) |
Substring of Buffer
|
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(char[] values,
int start,
int len) |
|
ByteBuffer |
with(java.lang.CharSequence... string) |
|
ByteBuffer |
withBufferLength(int length) |
array, checkValues, getBoolean, getDouble, getFloat, getInt, getLong, getShort, getString, getStringList, getUnsignedInt, isEmpty, nextClean, nextString, nextString, nextString, nextToken, nextValue, position, printError, readLine, remaining, skip, skip, skipChar, skipTo, skipTo, splitStringsback, clear, getCurrentChar, getNextString, isEnd, isEndCharacter, length, nextString, nextValue, parseString, substring, toArrayString, toBytes, withLength, withLookAHead, withLookAHead, withPositionpublic 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 byte[] getBytes(java.lang.Object... parameter)
parameter - Null for full, Number Length, or new Byte Arraypublic byte[] getValue(int start,
int len)
public byte[] array()
public boolean add(java.lang.Object... values)
BaseItemvalues - Items to Add to Listpublic boolean insert(java.lang.Object item,
boolean bufferAdEnd)
public boolean addBytes(java.lang.Object value,
int len,
boolean bufferAtEnd)
public boolean put(byte value)
public boolean put(short value)
public boolean put(int value)
public boolean put(long value)
public boolean put(char value)
public boolean put(float value)
public boolean put(double value)
public boolean 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.CharSequence... string)
with in class BufferedBufferpublic ByteBuffer with(byte[] array)
public ByteBuffer with(byte value)
public java.lang.String toString()
BaseItempublic ByteBuffer getNewList(boolean keyValue)
getNewList in interface BaseItemgetNewList in class BufferedBufferpublic int size()
BaseItempublic java.lang.String string()
public java.lang.String toString(Converter converter)
BaseItemconverter - Converter for Formatpublic ByteBuffer with(byte[] array, int len)
public ByteBuffer with(char[] values, int start, int len)
with in class BufferedBufferpublic boolean getBit()
public java.lang.String getShortstr()
public boolean set(int pos,
byte value)