All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ups.xmlsdk.util.Base64

java.lang.Object
   |
   +----com.ups.xmlsdk.util.Base64

public class Base64
extends Object
implements Serializable

Constructor Index

 o Base64()
This method decodes the given string using the base64-encoding specified in RFC-2045 (Section 6.8).

Method Index

 o base64Decode(byte[])
This method decodes the given byte[] using the base64-encoding specified in RFC-2045 (Section 6.8).
 o base64Decode(String)
This method decodes the given string using the base64-encoding specified in RFC-2045 (Section 6.8).
 o base64Encode(byte[])
This method encodes the given byte[] using the base64-encoding specified in RFC-2045 (Section 6.8).
 o base64Encode(String)
This method encodes the given string using the base64-encoding specified in RFC-2045 (Section 6.8).

Constructors

 o Base64
 public Base64()
This method decodes the given string using the base64-encoding specified in RFC-2045 (Section 6.8).

Parameters:
java.lang.String - base64-encoded string.

Methods

 o base64Decode
 public static final byte[] base64Decode(byte data[])
This method decodes the given byte[] using the base64-encoding specified in RFC-2045 (Section 6.8).

Parameters:
data - the base64-encoded data.
Returns:
the decoded data.
 o base64Decode
 public static final String base64Decode(String str)
This method decodes the given string using the base64-encoding specified in RFC-2045 (Section 6.8).

Parameters:
str - the base64-encoded string.
Returns:
the decoded str.
 o base64Encode
 public static final byte[] base64Encode(byte data[])
This method encodes the given byte[] using the base64-encoding specified in RFC-2045 (Section 6.8).

Parameters:
data - the data
Returns:
the base64-encoded data
 o base64Encode
 public static final String base64Encode(String str)
This method encodes the given string using the base64-encoding specified in RFC-2045 (Section 6.8).

Parameters:
str - the string
Returns:
the base64-encoded str

All Packages  Class Hierarchy  This Package  Previous  Next  Index