com.adobe.flashaccess.sdk.util
Class Base64

java.lang.Object
  extended by com.adobe.flashaccess.sdk.util.Base64

public class Base64
extends java.lang.Object

This is a utility class for Base64 encoding and decoding data


Method Summary
static byte[] fromBase64(byte[] b64data)
          Decodes the specified base64 enccoded data.
static byte[] toBase64(byte[] data)
          Applies base64 encoding to the specified data.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

toBase64

public static byte[] toBase64(byte[] data)
Applies base64 encoding to the specified data.

Parameters:
data - The data to encode.
Returns:
The base64 encoded data.

fromBase64

public static byte[] fromBase64(byte[] b64data)
Decodes the specified base64 enccoded data.

Parameters:
b64data - The base64 encoded data.
Returns:
The decoded data.
Throws:
java.lang.IllegalArgumentException - if the src data is not valid base 64 encoded data


[an error occurred while processing this directive] [an error occurred while processing this directive]