public class Base64 extends Object
| Constructor and Description |
|---|
Base64() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
decode(byte[] buffer)
Decodes Base64 data into octects.
|
static String |
decodeAsString(byte[] buffer)
Decodes array of bytes using base64 decoding and returns the result as a string.
|
static String |
decodeAsString(String text)
Decodes a string using base64 and returns the result as another string.
|
static byte[] |
encode(byte[] buffer)
Encodes array of bytes using base64 encoding.
|
static String |
encodeAsString(byte[] buffer)
Encodes array of bytes using base64 encoding and returns the result as a string.
|
static String |
encodeAsString(String text)
Encodes a string using base64 and returns the result as another string.
|
public static byte[] encode(byte[] buffer)
buffer - Array of bytes to be encoded.public static byte[] decode(byte[] buffer)
buffer - Byte array containing Base64 datapublic static String encodeAsString(byte[] buffer)
buffer - Array of bytes to be encoded.public static String encodeAsString(String text)
text - String to be encoded.public static String decodeAsString(byte[] buffer)
buffer - Array of bytes to be decoded.Copyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.