Class XMLRPCDecoder.Base64

  • Enclosing class:
    XMLRPCDecoder

    public static final class XMLRPCDecoder.Base64
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static char[] alphabet
      Code characters for values 0..63
      private static byte[] codes
      Lookup table for converting base64 characters to value in range 0..63
    • Constructor Summary

      Constructors 
      Constructor Description
      Base64()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static byte[] decode​(byte[] data)
      Returns an array of bytes which were encoded in the passed character array.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • alphabet

        private static char[] alphabet
        Code characters for values 0..63
      • codes

        private static byte[] codes
        Lookup table for converting base64 characters to value in range 0..63
    • Constructor Detail

      • Base64

        public Base64()
    • Method Detail

      • decode

        public static byte[] decode​(byte[] data)
        Returns an array of bytes which were encoded in the passed character array.
        Parameters:
        data - the array of base64-encoded characters
        Returns:
        decoded data array