InfoZoneTools API

org.infozone.tools
Class MimeBase64Decoder

java.lang.Object
  |
  +--org.infozone.tools.MimeBase64Decoder

public final class MimeBase64Decoder
extends java.lang.Object

Base 64 text to byte decoded. To produce the binary array from base 64 encoding call translate(char[]) for each sequence of characters and getByteArray() to mark closure of the character stream and retrieve the binary contents.

Author:
Based on code from the Mozilla Directory SDK

Constructor Summary
MimeBase64Decoder()
           
 
Method Summary
 byte[] getByteArray()
           
 void translate(char[] ch)
           
 void translate(char[] ch, int offset, int length)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MimeBase64Decoder

public MimeBase64Decoder()
Method Detail

translate

public final void translate(char[] ch)

translate

public final void translate(char[] ch,
                            int offset,
                            int length)

getByteArray

public byte[] getByteArray()

InfoZoneTools API