Class Base64Engine


  • public class Base64Engine
    extends java.lang.Object
    Base64Engine This class provides Base64 Content-Transfer-Encoding encoding and decoding. See RFC 3548 for details (http://www.ietf.org/rfc/rfc3548.txt?number=3548).
    • Constructor Summary

      Constructors 
      Constructor Description
      Base64Engine()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int decode​(byte[] input, int inOffset, int length, byte[] output, int outOffset)
      Decode an array of bytes into another array of bytes return the number of output bytes If output is null, just return the output byte count
      static byte[] decode​(java.lang.String s)  
      static char[] encode​(byte[] input, int inOffset, int length)  
      static int encode​(byte[] input, int inOffset, int length, byte[] output, int outOffset)
      Encode an array of bytes into another array of bytes return the number of output bytes If output is null, just return the output byte count
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Base64Engine

        public Base64Engine()
    • Method Detail

      • decode

        public static int decode​(byte[] input,
                                 int inOffset,
                                 int length,
                                 byte[] output,
                                 int outOffset)
        Decode an array of bytes into another array of bytes return the number of output bytes If output is null, just return the output byte count
      • encode

        public static int encode​(byte[] input,
                                 int inOffset,
                                 int length,
                                 byte[] output,
                                 int outOffset)
        Encode an array of bytes into another array of bytes return the number of output bytes If output is null, just return the output byte count
      • encode

        public static char[] encode​(byte[] input,
                                    int inOffset,
                                    int length)
      • decode

        public static byte[] decode​(java.lang.String s)