public final class Base64 extends Object
Modifier and Type | Method and Description |
---|---|
static byte[] |
encode(byte[] bytes)
Base64 encodes the specified bytes.
|
static String |
encode(String string)
Base64 encodes the specified string using the platform's default encoding.
|
static byte[] |
encodeBase64(byte[] bytes)
Base64 encodes the specified bytes.
|
static String |
encodeToString(byte[] bytes)
Base64 encodes the specified bytes to a String.
|
public static byte[] encodeBase64(byte[] bytes)
bytes
- the bytes to encodepublic static String encode(String string)
string
- the string to encodepublic static byte[] encode(byte[] bytes)
bytes
- the bytes to encodepublic static String encodeToString(byte[] bytes)
bytes
- the bytes to encodeCopyright © 2004–2018 Github. All rights reserved.