| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.virtuosotechnologies.lib.conversion.Base64UnStringizer
An UnStringizer that uses Base64 conversion. This class is fully synchronized and thread safe.
| Constructor Summary | |
Base64UnStringizer()
Constructor  | 
|
| 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?  | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public Base64UnStringizer()
| Method Detail | 
public boolean isFinished()
isFinished in interface UnStringizerpublic void finish()
finish in interface UnStringizer
public void addCharacters(char[] data,
                          int start,
                          int length)
addCharacters in interface UnStringizerdata - 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)
addCharacters in interface UnStringizerstr - characters to add
IllegalStateException - UnStringizer is already finished.public int getTotalStringLength()
getTotalStringLength in interface UnStringizerpublic int getWaitingByteCount()
getWaitingByteCount in interface UnStringizerpublic byte[] getWaitingBytes(int count)
getWaitingBytes in interface UnStringizercount - maximum number of bytes to get, or -1 to get all bytes.
public int getWaitingBytes(int count,
                           byte[] buffer,
                           int pos)
getWaitingBytes in interface UnStringizercount - 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 | |||||||||