public final class Base64Codec extends Object
| Constructor and Description |
|---|
Base64Codec() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
decode(byte[] bytes) |
static byte[] |
decode(byte[] bytes,
boolean strict) |
static byte[] |
decode(byte[] bytes,
boolean strict,
char char62,
char char63) |
static byte[] |
decode(byte[] bytes,
char char62,
char char63) |
static byte[] |
decode(ByteArrayInputStream byteInputStream) |
static byte[] |
decode(ByteArrayInputStream byteInputStream,
boolean strict) |
static byte[] |
decode(ByteArrayInputStream byteInputStream,
boolean strict,
char char62,
char char63) |
static byte[] |
decode(ByteArrayInputStream byteInputStream,
char char62,
char char63) |
static byte[] |
decode(String encoded) |
static byte[] |
decode(String encoded,
boolean strict) |
static byte[] |
decode(String encoded,
boolean strict,
char char62,
char char63) |
static byte[] |
decode(String encoded,
char char62,
char char63) |
static String |
encode(byte[] bytes) |
static String |
encode(byte[] bytes,
boolean includePadding) |
static String |
encode(byte[] bytes,
boolean includePadding,
char char62,
char char63) |
static String |
encode(byte[] bytes,
char char62,
char char63) |
static String |
encode(ByteArrayInputStream byteInputStream,
boolean includePadding,
char char62,
char char63) |
static String |
encode(ByteArrayInputStream byteInputStream,
char char62,
char char63) |
static String |
encode(String original) |
static String |
encode(String original,
boolean includePadding) |
static String |
encode(String original,
boolean includePadding,
char char62,
char char63) |
static String |
encode(String original,
char char62,
char char63) |
static byte[] |
urlSafeDecode(byte[] bytes) |
static byte[] |
urlSafeDecode(ByteArrayInputStream byteInputStream) |
static byte[] |
urlSafeDecode(String encoded) |
static String |
urlSafeEncode(byte[] bytes) |
static String |
urlSafeEncode(ByteArrayInputStream byteInputStream) |
static String |
urlSafeEncode(String original) |
public static String urlSafeEncode(String original) throws IOException
IOExceptionpublic static String urlSafeEncode(byte[] bytes) throws IOException
IOExceptionpublic static String urlSafeEncode(ByteArrayInputStream byteInputStream) throws IOException
IOExceptionpublic static String encode(String original) throws IOException
IOExceptionpublic static String encode(String original, boolean includePadding) throws IOException
IOExceptionpublic static String encode(String original, char char62, char char63) throws IOException
IOExceptionpublic static String encode(String original, boolean includePadding, char char62, char char63) throws IOException
IOExceptionpublic static String encode(byte[] bytes) throws IOException
IOExceptionpublic static String encode(byte[] bytes, boolean includePadding) throws IOException
IOExceptionpublic static String encode(byte[] bytes, char char62, char char63) throws IOException
IOExceptionpublic static String encode(byte[] bytes, boolean includePadding, char char62, char char63) throws IOException
IOExceptionpublic static String encode(ByteArrayInputStream byteInputStream, char char62, char char63) throws IOException
IOExceptionpublic static String encode(ByteArrayInputStream byteInputStream, boolean includePadding, char char62, char char63) throws IOException
IOExceptionpublic static byte[] urlSafeDecode(String encoded) throws IOException
IOExceptionpublic static byte[] urlSafeDecode(byte[] bytes)
throws IOException
IOExceptionpublic static byte[] urlSafeDecode(ByteArrayInputStream byteInputStream) throws IOException
IOExceptionpublic static byte[] decode(String encoded) throws IOException
IOExceptionpublic static byte[] decode(String encoded, boolean strict) throws IOException
IOExceptionpublic static byte[] decode(String encoded, char char62, char char63) throws IOException
IOExceptionpublic static byte[] decode(String encoded, boolean strict, char char62, char char63) throws IOException
IOExceptionpublic static byte[] decode(byte[] bytes)
throws IOException
IOExceptionpublic static byte[] decode(byte[] bytes,
boolean strict)
throws IOException
IOExceptionpublic static byte[] decode(byte[] bytes,
char char62,
char char63)
throws IOException
IOExceptionpublic static byte[] decode(byte[] bytes,
boolean strict,
char char62,
char char63)
throws IOException
IOExceptionpublic static byte[] decode(ByteArrayInputStream byteInputStream) throws IOException
IOExceptionpublic static byte[] decode(ByteArrayInputStream byteInputStream, boolean strict) throws IOException
IOExceptionpublic static byte[] decode(ByteArrayInputStream byteInputStream, char char62, char char63) throws IOException
IOExceptionpublic static byte[] decode(ByteArrayInputStream byteInputStream, boolean strict, char char62, char char63) throws IOException
IOExceptionCopyright © 2019. All rights reserved.