Module org.eclipse.persistence.core
Class Base64
java.lang.Object
org.eclipse.persistence.internal.oxm.conversion.Base64
INTERNAL:
Purpose: Convert to/from XML base64Binary.
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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.Base64static byte[]
base64Encode
(byte[] data) This method encodes the given byte[] using java.util.Base64static String
base64EncodeToString
(byte[] data) This method encodes the given byte[] using java.util.Base64.
-
Method Details
-
base64Decode
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
- the base64-encoded data.- Returns:
- the decoded data.
-
base64Encode
public static byte[] base64Encode(byte[] data) This method encodes the given byte[] using java.util.Base64- Parameters:
data
- the data- Returns:
- the base64-encoded data
-
base64EncodeToString
This method encodes the given byte[] using java.util.Base64.- Parameters:
data
- the data- Returns:
- the base64-encoded data as a String
-