A byte buffer which supports last-in and first-out.
| Constructor and description |
|---|
Buffer
(java.lang.String encoding1) |
| Type | Name and description |
|---|---|
void |
append(byte[] bytes, int length)Append bytes to last. |
void |
append(byte[] bytes)Append bytes to last. |
void |
append(java.lang.String string)Append string to last. |
byte[] |
dropBytes(int length)Drop first bytes. |
void |
dropChars(java.lang.String string)Drop first bytes of given characters length. |
int |
size()Return size of the buffer. |
java.lang.String |
toString()Return string representation of the buffer. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Append bytes to last.
Append bytes to last.
Append string to last.
Drop first bytes. If {
length} - is greater than buffer size, whole is dropped.length - must be greater than 0Drop first bytes of given characters length.
Return size of the buffer.
Return string representation of the buffer.