Package aQute.lib.base64
Class Base64
java.lang.Object
aQute.lib.base64.Base64
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final void
decode
(Reader rdr, OutputStream out) static final void
decode
(Reader rdr, OutputStream out, int maxLength) static final byte[]
decodeBase64
(File file) static byte[]
static byte[]
decodeBase64
(InputStream in, int maxLength) static byte[]
decodeBase64
(Reader rdr) static byte[]
decodeBase64
(Reader rdr, int maxLength) static final byte[]
decodeBase64
(String string) static void
encode
(File file, 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
private static void
flush
(OutputStream out, int register, int pads) static boolean
toData()
toString()
-
Field Details
-
DEFAULT_MAX_INPUT_LENGTH
private static final int DEFAULT_MAX_INPUT_LENGTH- See Also:
-
data
byte[] data -
alphabet
- See Also:
-
values
private static final byte[] values -
BASE64_C
- See Also:
-
BASE64_P
-
-
Constructor Details
-
Base64
public Base64(byte[] data) -
Base64
-
-
Method Details
-
decodeBase64
-
decodeBase64
- Throws:
IOException
-
decodeBase64
- Throws:
IOException
-
decodeBase64
- Throws:
IOException
-
decodeBase64
- Throws:
IOException
-
decodeBase64
- Throws:
IOException
-
decode
- Throws:
IOException
-
decode
- Throws:
IOException
-
flush
- Throws:
IOException
-
toString
-
encodeBase64
- Throws:
IOException
-
encodeBase64
- Throws:
IOException
-
encodeBase64
-
toData
-
encode
- Throws:
IOException
-
encode
- Throws:
IOException
-
encode
- Throws:
IOException
-
isBase64
-