Top Description Constructors Methods
org.eclipse.persistence.internal.oxm.conversion

public Class Base64

extends Object
Class Inheritance

INTERNAL:

Purpose: Convert to/from XML base64Binary.

Constructor Summary

AccessConstructor and Description
private
Base64()

Base64 constructor comment.

Method Summary

Modifier and TypeMethod and Description
public static byte[]

Returns:

the decoded data.
base64Decode
(byte[]
the base64-encoded data.
data
)

base64Binary data is likely to be long, and decoding requires each character to be accessed twice (once for counting length, another for decoding.) This method decodes the given byte[] using the java.util.Base64

public static byte[]

Returns:

the base64-encoded data
base64Encode
(byte[]
the data
data
)

This method encodes the given byte[] using java.util.Base64

public static String

Returns:

the base64-encoded data as a String
base64EncodeToString
(byte[]
the data
data
)

This method encodes the given byte[] using java.util.Base64.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Base64back to summary
private Base64()

Base64 constructor comment.

Method Detail

base64Decodeback to summary
public static byte[] base64Decode(byte[] data)

base64Binary data is likely to be long, and decoding requires each character to be accessed twice (once for counting length, another for decoding.) This method decodes the given byte[] using the java.util.Base64

Parameters
data:byte[]

the base64-encoded data.

Returns:byte[]

the decoded data.

base64Encodeback to summary
public static byte[] base64Encode(byte[] data)

This method encodes the given byte[] using java.util.Base64

Parameters
data:byte[]

the data

Returns:byte[]

the base64-encoded data

base64EncodeToStringback to summary
public static String base64EncodeToString(byte[] data)

This method encodes the given byte[] using java.util.Base64.

Parameters
data:byte[]

the data

Returns:String

the base64-encoded data as a String