org.exolab.castor.util

Class MimeBase64Decoder

public final class MimeBase64Decoder extends Object

Base 64 text to byte decoded. To produce the binary array from base 64 encoding call {@link #translate} for each sequence of characters and {@link #getByteArray} to mark closure of the character stream and retrieve the binary contents.

Author: Based on code from the Mozilla Directory SDK

Method Summary
byte[]getByteArray()
voidtranslate(char[] ch, int offset, int length)
voidtranslate(String str)

Method Detail

getByteArray

public byte[] getByteArray()

translate

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

translate

public final void translate(String str)
Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com