public class Base64 extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
decode(Reader rdr,
OutputStream out) |
static void |
decode(Reader rdr,
OutputStream out,
int maxLength) |
static byte[] |
decodeBase64(File file) |
static byte[] |
decodeBase64(InputStream in) |
static byte[] |
decodeBase64(InputStream in,
int maxLength) |
static byte[] |
decodeBase64(Reader rdr) |
static byte[] |
decodeBase64(Reader rdr,
int maxLength) |
static byte[] |
decodeBase64(String string) |
static void |
encode(File in,
Appendable sb) |
static void |
encode(InputStream in,
Appendable sb) |
static void |
encode(InputStream in,
Appendable sb,
int maxLength) |
static String |
encodeBase64(byte[] data) |
static String |
encodeBase64(File in) |
static String |
encodeBase64(InputStream in) |
static boolean |
isBase64(String value) |
Object |
toData() |
String |
toString() |
public Base64(byte[] data)
public Base64(String s)
public static final byte[] decodeBase64(String string)
public static byte[] decodeBase64(Reader rdr) throws IOException
IOExceptionpublic static byte[] decodeBase64(Reader rdr, int maxLength) throws IOException
IOExceptionpublic static byte[] decodeBase64(InputStream in) throws IOException
IOExceptionpublic static byte[] decodeBase64(InputStream in, int maxLength) throws IOException
IOExceptionpublic static final byte[] decodeBase64(File file) throws IOException
IOExceptionpublic static final void decode(Reader rdr, OutputStream out) throws IOException
IOExceptionpublic static final void decode(Reader rdr, OutputStream out, int maxLength) throws IOException
IOExceptionpublic static String encodeBase64(InputStream in) throws IOException
IOExceptionpublic static String encodeBase64(File in) throws IOException
IOExceptionpublic static String encodeBase64(byte[] data)
public Object toData()
public static void encode(File in, Appendable sb) throws IOException
IOExceptionpublic static void encode(InputStream in, Appendable sb) throws IOException
IOExceptionpublic static void encode(InputStream in, Appendable sb, int maxLength) throws IOException
IOExceptionpublic static boolean isBase64(String value)
Copyright © 2019 aQute SARL. All rights reserved.