public class IOUtils extends Object
Modifier and Type | Field and Description |
---|---|
static char[] |
ASCII_CHARS |
static char[] |
CA |
static Properties |
DEFAULT_PROPERTIES |
static char[] |
DIGITS |
static String |
FASTJSON_COMPATIBLEWITHFIELDNAME |
static String |
FASTJSON_COMPATIBLEWITHJAVABEAN |
static String |
FASTJSON_PROPERTIES |
static boolean[] |
firstIdentifierFlags |
static int[] |
IA |
static boolean[] |
identifierFlags |
static char[] |
replaceChars |
static byte[] |
specicalFlags_doubleQuotes |
static boolean[] |
specicalFlags_doubleQuotesFlags |
static byte[] |
specicalFlags_singleQuotes |
static boolean[] |
specicalFlags_singleQuotesFlags |
static Charset |
UTF8 |
Constructor and Description |
---|
IOUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
close(Closeable x) |
static void |
decode(CharsetDecoder charsetDecoder,
ByteBuffer byteBuf,
CharBuffer charByte) |
static byte[] |
decodeBase64(char[] chars,
int offset,
int charsLen)
Decodes a BASE64 encoded char array that is known to be resonably well formatted.
|
static byte[] |
decodeBase64(String s)
Decodes a BASE64 encoded string that is known to be resonably well formatted.
|
static byte[] |
decodeBase64(String chars,
int offset,
int charsLen) |
static int |
decodeUTF8(byte[] sa,
int sp,
int len,
char[] da)
Deprecated.
|
static int |
encodeUTF8(char[] chars,
int offset,
int len,
byte[] bytes) |
static boolean |
firstIdentifier(char ch) |
static void |
getChars(byte b,
int index,
char[] buf) |
static void |
getChars(int i,
int index,
char[] buf)
Places characters representing the integer i into the character array buf.
|
static void |
getChars(long i,
int index,
char[] buf) |
static String |
getStringProperty(String name) |
static boolean |
isIdent(char ch) |
static boolean |
isValidJsonpQueryParam(String value) |
static void |
loadPropertiesFromFile() |
static String |
readAll(Reader reader)
Deprecated.
|
static int |
stringSize(int x) |
static int |
stringSize(long x) |
public static final String FASTJSON_PROPERTIES
public static final String FASTJSON_COMPATIBLEWITHJAVABEAN
public static final String FASTJSON_COMPATIBLEWITHFIELDNAME
public static final Properties DEFAULT_PROPERTIES
public static final Charset UTF8
public static final char[] DIGITS
public static final boolean[] firstIdentifierFlags
public static final boolean[] identifierFlags
public static final byte[] specicalFlags_doubleQuotes
public static final byte[] specicalFlags_singleQuotes
public static final boolean[] specicalFlags_doubleQuotesFlags
public static final boolean[] specicalFlags_singleQuotesFlags
public static final char[] replaceChars
public static final char[] ASCII_CHARS
public static final char[] CA
public static final int[] IA
public static void loadPropertiesFromFile()
public static void close(Closeable x)
public static int stringSize(long x)
public static void getChars(long i, int index, char[] buf)
public static void getChars(int i, int index, char[] buf)
public static void getChars(byte b, int index, char[] buf)
public static int stringSize(int x)
public static void decode(CharsetDecoder charsetDecoder, ByteBuffer byteBuf, CharBuffer charByte)
public static boolean firstIdentifier(char ch)
public static boolean isIdent(char ch)
public static byte[] decodeBase64(char[] chars, int offset, int charsLen)
chars
- The source array. Length 0 will return an empty array. null
will throw an exception.public static byte[] decodeBase64(String chars, int offset, int charsLen)
public static byte[] decodeBase64(String s)
s
- The source string. Length 0 will return an empty array. null
will throw an exception.public static int encodeUTF8(char[] chars, int offset, int len, byte[] bytes)
public static int decodeUTF8(byte[] sa, int sp, int len, char[] da)
public static boolean isValidJsonpQueryParam(String value)
Copyright © 2012–2022 Alibaba Group. All rights reserved.