|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Something that converts a string to binary data.
| Method Summary | |
void |
addCharacters(char[] data,
int start,
int length)
Add character data to the UnStringizer |
void |
addCharacters(String str)
Add character data to the UnStringizer |
void |
finish()
Finish the conversion |
int |
getTotalStringLength()
Get the total number of characters that have been added. |
int |
getWaitingByteCount()
Get the number of deencoded bytes ready to be fetched |
byte[] |
getWaitingBytes(int count)
Get the given number of bytes as a byte array. |
int |
getWaitingBytes(int count,
byte[] buffer,
int pos)
Copy the given number of bytes to an existing byte array. |
boolean |
isFinished()
Is the UnStringizer finished? |
| Method Detail |
public boolean isFinished()
public void finish()
public void addCharacters(char[] data,
int start,
int length)
data - character arraystart - index into character arraylength - number of characters to add
IllegalStateException - UnStringizer is already finished.
ArrayIndexOutOfBoundsException - bad start and/or length value.public void addCharacters(String str)
str - characters to add
IllegalStateException - UnStringizer is already finished.public int getTotalStringLength()
public int getWaitingByteCount()
public byte[] getWaitingBytes(int count)
count - maximum number of bytes to get, or -1 to get all bytes.
public int getWaitingBytes(int count,
byte[] buffer,
int pos)
count - maximum number of bytes to get.buffer - array to add the bytes topos - position in the buffer array
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||