|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Something that converts binary data to a string.
Method Summary | |
void |
addBytes(byte[] data,
int start,
int length)
Add binary data to the Stringizer |
void |
finish()
Finish the conversion |
int |
getTotalDataLength()
Get the total number of bytes of binary data that have been added. |
int |
getWaitingCharacterCount()
Get the number of encoded characters ready to be fetched |
String |
getWaitingCharacters(int count)
Get the given number of characters as a String. |
int |
getWaitingCharacters(int count,
StringBuffer buffer)
Add the given number of characters to a StringBuffer. |
boolean |
isFinished()
Is the Stringizer finished? |
Method Detail |
public boolean isFinished()
public void finish()
public void addBytes(byte[] data, int start, int length)
data
- data arraystart
- index into data arraylength
- number of bytes to add
IllegalStateException
- Stringizer is already finished.
ArrayIndexOutOfBoundsException
- bad start and/or length value.public int getTotalDataLength()
public int getWaitingCharacterCount()
public String getWaitingCharacters(int count)
count
- maximum number of characters to get, or -1 to get all characters.
public int getWaitingCharacters(int count, StringBuffer buffer)
count
- maximum number of characters to get, or -1 to get all characters.buffer
- StringBuffer to add the characters to
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |