|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--javar.util.ByteWriter
This class will simple keep track of writing bytes and caching byte arrays between instances.
| Constructor Summary | |
ByteWriter()
This will attempt to pull a byte array from the cache or create one if the cache is empty. |
|
| Method Summary | |
void |
append(byte b)
This will append a single byte to the array. |
void |
append(byte[] b)
This will append a single byte to the array. |
byte[] |
close()
This will create a new buffer of the correct size and return the old buffer to the cache. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ByteWriter()
| Method Detail |
public final void append(byte b)
b - The byte to appendpublic final void append(byte[] b)
b - The byte[] to appendpublic final byte[] close()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||