|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.virtuosotechnologies.lib.conversion.Base64Stringizer
A Stringizer that uses Base64 conversion. This class is fully synchronized and thread safe.
| Constructor Summary | |
Base64Stringizer()
Constructor |
|
| 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? |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Base64Stringizer()
| Method Detail |
public boolean isFinished()
isFinished in interface Stringizerpublic void finish()
finish in interface StringizerIllegalStateException - Stringizer is already finished.
public void addBytes(byte[] data,
int start,
int length)
addBytes in interface Stringizerdata - 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()
getTotalDataLength in interface Stringizerpublic int getWaitingCharacterCount()
getWaitingCharacterCount in interface Stringizerpublic String getWaitingCharacters(int count)
getWaitingCharacters in interface Stringizercount - maximum number of characters to get, or -1 to get all characters.
public int getWaitingCharacters(int count,
StringBuffer buffer)
getWaitingCharacters in interface Stringizercount - 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 | |||||||||