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