Class IOUtils


  • public class IOUtils
    extends Object
    Author:
    wenshao[szujobs@hotmail.com]
    • Field Detail

      • UTF8

        public static final Charset UTF8
      • DIGITS

        public static final char[] DIGITS
      • firstIdentifierFlags

        public static final boolean[] firstIdentifierFlags
      • identifierFlags

        public static final boolean[] identifierFlags
      • specicalFlags_doubleQuotes

        public static final byte[] specicalFlags_doubleQuotes
      • specicalFlags_singleQuotes

        public static final byte[] specicalFlags_singleQuotes
      • specicalFlags_doubleQuotesFlags

        public static final boolean[] specicalFlags_doubleQuotesFlags
      • specicalFlags_singleQuotesFlags

        public static final boolean[] specicalFlags_singleQuotesFlags
      • replaceChars

        public static final char[] replaceChars
      • CA

        public static final char[] CA
    • Constructor Detail

      • IOUtils

        public IOUtils()
    • Method Detail

      • decodeBase64

        public static byte[] decodeBase64​(String s)
      • close

        public static void close​(Closeable x)
      • getChars

        public static void getChars​(byte b,
                                    int index,
                                    char[] buf)
      • getChars

        public static void getChars​(int i,
                                    int index,
                                    char[] buf)
      • getChars

        public static void getChars​(long i,
                                    int index,
                                    char[] buf)
      • stringSize

        public static int stringSize​(int x)
      • stringSize

        public static int stringSize​(long x)
      • decodeUTF8

        public static int decodeUTF8​(byte[] sa,
                                     int sp,
                                     int len,
                                     char[] da)
      • isIdent

        public static boolean isIdent​(char ch)
      • isValidJsonpQueryParam

        public static boolean isValidJsonpQueryParam​(String value)