Package com.alibaba.fastjson.util
Class IOUtils
- java.lang.Object
-
- com.alibaba.fastjson.util.IOUtils
-
public class IOUtils extends Object
- Author:
- wenshao[szujobs@hotmail.com]
-
-
Field Summary
Fields Modifier and Type Field Description static char[]CAstatic char[]DIGITSstatic boolean[]firstIdentifierFlagsstatic boolean[]identifierFlagsstatic char[]replaceCharsstatic byte[]specicalFlags_doubleQuotesstatic boolean[]specicalFlags_doubleQuotesFlagsstatic byte[]specicalFlags_singleQuotesstatic boolean[]specicalFlags_singleQuotesFlagsstatic CharsetUTF8
-
Constructor Summary
Constructors Constructor Description IOUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidclose(Closeable x)static voiddecode(CharsetDecoder charsetDecoder, ByteBuffer byteBuf, CharBuffer charByte)static byte[]decodeBase64(String s)static intdecodeUTF8(byte[] sa, int sp, int len, char[] da)static voidgetChars(byte b, int index, char[] buf)static voidgetChars(int i, int index, char[] buf)static voidgetChars(long i, int index, char[] buf)static booleanisIdent(char ch)static booleanisValidJsonpQueryParam(String value)static intstringSize(int x)static intstringSize(long x)
-
-
-
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
-
-
Method Detail
-
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)
-
isIdent
public static boolean isIdent(char ch)
-
isValidJsonpQueryParam
public static boolean isValidJsonpQueryParam(String value)
-
-