Class IOUtils

java.lang.Object
com.alibaba.fastjson.util.IOUtils

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

    • 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 Details

    • IOUtils

      public IOUtils()
  • Method Details

    • decode

      public static void decode(CharsetDecoder charsetDecoder, ByteBuffer byteBuf, CharBuffer charByte)
    • 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)