public class Base64 extends Object
Purpose: Convert to/from XML base64Binary.
Modifier and Type | Method and 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 base64-encoding
specified in RFC-2045 (Section 6.8).
|
static byte[] |
base64Encode(byte[] data)
This method encodes the given byte[] using the base64-encoding
specified in RFC-2045 (Section 6.8).
|
public static byte[] base64Decode(byte[] data)
data
- the base64-encoded data.public static byte[] base64Encode(byte[] data)
data
- the dataEclipseLink 2.5.2, "build v20140319-9ad6abd" API Reference