public final class Base64 extends Object
Modifier and Type | Method and Description |
---|---|
static byte[] |
decodeBase64(byte[] base64)
Decode, presuming bytes are base64.
|
static byte[] |
decodeBase64(String base64String)
Decode, presuming String is base64.
|
static byte[] |
encodeBase64(byte[] data)
Serialize to Base64 byte array, non-chunked.
|
static String |
encodeBase64String(byte[] data)
Serialize to Base64 as a String, non-chunked.
|
static String |
encodeBase64URLSafeString(byte[] data)
Serialize to Base64 as a String using the URLSafe alphabet, non-chunked.
|
public static byte[] encodeBase64(byte[] data)
public static String encodeBase64String(byte[] data)
public static String encodeBase64URLSafeString(byte[] data)
public static byte[] decodeBase64(byte[] base64)
public static byte[] decodeBase64(String base64String)
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.