com.quartzdesk.api.common.encoding
Class BASE64Decoder

java.lang.Object
  extended by com.quartzdesk.api.common.encoding.BASE64Decoder

public final class BASE64Decoder
extends Object

This is a utility class which is used to decode a string in the MIME BASE64 format into a byte array. For further information about the MIME BASE64 encoding, see RFC2045.

Version:
$Id:$
Author:
Jan Moravec

Method Summary
static byte[] decode(String s)
          Decodes a string in the MIME BASE64 format into a byte array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

decode

public static byte[] decode(String s)
                     throws EncodingException
Decodes a string in the MIME BASE64 format into a byte array.

Parameters:
s - the string in the MIME BASE64 format.
Returns:
the byte array of decoded data.
Throws:
EncodingException - when the string s is not in MIME BASE64 format.


Copyright © 2013–2017 QuartzDesk.com. All rights reserved.