|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcodesimian.ByteBuf
public class ByteBuf
| Constructor Summary | |
|---|---|
ByteBuf()
get more bytes from byteMaker if count is less than this * private int minCount = -1; public final int minCount(){ return minCount; } /** how many bytes to get from byteMaker at a time * private int byteMakerIncrement = -1; public final int byteMakerIncrement(){ return byteMakerIncrement; } /** where to get bytes from when needed * private ByteMaker byteMaker = null; public final ByteMaker byteMaker(){ return byteMaker; } |
|
| Method Summary | |
|---|---|
void |
add(byte[] bytes)
add some bytes, which become the newest bytes |
int |
count()
|
static void |
main(java.lang.String[] a)
|
byte[] |
remove(int bytesToRemove)
Removes and returns the oldest 'numBytes' bytes, or all remaining bytes if not that many exist, or null if no bytes exist. Will split an array added by add() if necessary. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ByteBuf()
| Method Detail |
|---|
public final int count()
public java.lang.String toString()
toString in class java.lang.Objectpublic byte[] remove(int bytesToRemove)
public void add(byte[] bytes)
public static void main(java.lang.String[] a)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||