Class Base64


  • public class Base64
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Base64​(byte[] data)  
      Base64​(java.lang.String s)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static void decode​(java.io.Reader rdr, java.io.OutputStream out)  
      static void decode​(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 void encode​(java.io.File in, java.lang.Appendable sb)  
      static void encode​(java.io.InputStream in, java.lang.Appendable sb)  
      static void encode​(java.io.InputStream in, java.lang.Appendable sb, int maxLength)  
      static java.lang.String encodeBase64​(byte[] data)  
      static java.lang.String encodeBase64​(java.io.File in)  
      static java.lang.String encodeBase64​(java.io.InputStream in)  
      static boolean isBase64​(java.lang.String value)  
      java.lang.Object toData()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Base64

        public Base64​(byte[] data)
      • Base64

        public Base64​(java.lang.String s)
    • 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:
        toString in class java.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 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)
                           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)