Package aQute.lib.base64
Class Base64
- java.lang.Object
-
- aQute.lib.base64.Base64
-
public class Base64 extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voiddecode(java.io.Reader rdr, java.io.OutputStream out)static voiddecode(java.io.Reader rdr, java.io.OutputStream out, int maxLength)static byte[]decodeBase64(java.io.File file)static byte[]decodeBase64(java.io.InputStream in)static byte[]decodeBase64(java.io.InputStream in, int maxLength)static byte[]decodeBase64(java.io.Reader rdr)static byte[]decodeBase64(java.io.Reader rdr, int maxLength)static byte[]decodeBase64(java.lang.String string)static voidencode(java.io.File file, java.lang.Appendable sb)static voidencode(java.io.InputStream in, java.lang.Appendable sb)static voidencode(java.io.InputStream in, java.lang.Appendable sb, int maxLength)static java.lang.StringencodeBase64(byte[] data)static java.lang.StringencodeBase64(java.io.File in)static java.lang.StringencodeBase64(java.io.InputStream in)static booleanisBase64(java.lang.String value)java.lang.ObjecttoData()java.lang.StringtoString()
-
-
-
Method Detail
-
decodeBase64
public static final byte[] decodeBase64(java.lang.String string)
-
decodeBase64
public static byte[] decodeBase64(java.io.Reader rdr) throws java.io.IOException- Throws:
java.io.IOException
-
decodeBase64
public static byte[] decodeBase64(java.io.Reader rdr, int maxLength) throws java.io.IOException- Throws:
java.io.IOException
-
decodeBase64
public static byte[] decodeBase64(java.io.InputStream in) throws java.io.IOException- Throws:
java.io.IOException
-
decodeBase64
public static byte[] decodeBase64(java.io.InputStream in, int maxLength) throws java.io.IOException- Throws:
java.io.IOException
-
decodeBase64
public static final byte[] decodeBase64(java.io.File file) throws java.io.IOException- Throws:
java.io.IOException
-
decode
public static final void decode(java.io.Reader rdr, java.io.OutputStream out) throws java.io.IOException- Throws:
java.io.IOException
-
decode
public static final void decode(java.io.Reader rdr, java.io.OutputStream out, int maxLength) throws java.io.IOException- Throws:
java.io.IOException
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
encodeBase64
public static java.lang.String encodeBase64(java.io.InputStream in) throws java.io.IOException- Throws:
java.io.IOException
-
encodeBase64
public static java.lang.String encodeBase64(java.io.File in) throws java.io.IOException- Throws:
java.io.IOException
-
encodeBase64
public static java.lang.String encodeBase64(byte[] data)
-
toData
public java.lang.Object toData()
-
encode
public static void encode(java.io.File file, java.lang.Appendable sb) throws java.io.IOException- Throws:
java.io.IOException
-
encode
public static void encode(java.io.InputStream in, java.lang.Appendable sb) throws java.io.IOException- Throws:
java.io.IOException
-
encode
public static void encode(java.io.InputStream in, java.lang.Appendable sb, int maxLength) throws java.io.IOException- Throws:
java.io.IOException
-
isBase64
public static boolean isBase64(java.lang.String value)
-
-