Changes since
the last release

com.ebay.sdk.util
Class Base64

java.lang.Object
  extended by com.ebay.sdk.util.Base64

public class Base64
extends java.lang.Object

Author:
cli Provides encoding of raw bytes to base64-encoded characters, and decoding of base64 characters to raw bytes.

Constructor Summary
Base64()
           
 
Method Summary
static byte[] decode(char[] data)
          Decodes a BASE-64 encoded stream to recover the original data.
static char[] encode(byte[] data)
          returns an array of base64-encoded characters to represent the passed data array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Base64

public Base64()
Method Detail

encode

public static char[] encode(byte[] data)
returns an array of base64-encoded characters to represent the passed data array.

Parameters:
data - the array of bytes to encode
Returns:
base64-coded character array.

decode

public static byte[] decode(char[] data)
Decodes a BASE-64 encoded stream to recover the original data. White space before and after will be trimmed away, but no other manipulation of the input will be performed.

Parameters:
data - char[]
Returns:
byte[]

Changes since
the last release

The information contained in this document is proprietary and confidential. Use of this information and the eBay API requires a Non-Disclosure Agreement (NDA) between the user and eBay Inc. For information regarding a qualifying NDA, contact Developer Relations: developer-relations@ebay.com
© 2004-2009 eBay Inc. All rights reserved.