Package one.nio.util

Class Base64


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

      Constructors 
      Constructor Description
      Base64()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static byte[] decode​(byte[] s)  
      static byte[] decode​(byte[] s, int len)  
      static byte[] decodeFromChars​(char[] s)  
      static byte[] decodeFromChars​(char[] s, int len)  
      static byte[] encode​(byte[] s)  
      static void encode​(byte[] s, byte[] result, int p, byte[] table)  
      static char[] encodeToChars​(byte[] s)  
      static void encodeToChars​(byte[] s, char[] result, int p, byte[] table)  
      static byte[] encodeUrl​(byte[] s)  
      static char[] encodeUrlToChars​(byte[] s)  
      • Methods inherited from class java.lang.Object

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

      • DEFAULT_TABLE

        public static final byte[] DEFAULT_TABLE
      • URL_TABLE

        public static final byte[] URL_TABLE
      • DECODE_TABLE

        private static final byte[] DECODE_TABLE
    • Constructor Detail

      • Base64

        public Base64()
    • Method Detail

      • encode

        public static byte[] encode​(byte[] s)
      • encodeUrl

        public static byte[] encodeUrl​(byte[] s)
      • encode

        public static void encode​(byte[] s,
                                  byte[] result,
                                  int p,
                                  byte[] table)
      • encodeToChars

        public static char[] encodeToChars​(byte[] s)
      • encodeUrlToChars

        public static char[] encodeUrlToChars​(byte[] s)
      • encodeToChars

        public static void encodeToChars​(byte[] s,
                                         char[] result,
                                         int p,
                                         byte[] table)
      • decode

        public static byte[] decode​(byte[] s)
      • decode

        public static byte[] decode​(byte[] s,
                                    int len)
      • decodeFromChars

        public static byte[] decodeFromChars​(char[] s)
      • decodeFromChars

        public static byte[] decodeFromChars​(char[] s,
                                             int len)