public class IOUtils extends Object
限定符和类型 | 字段和说明 |
---|---|
static char[] |
ASCII_CHARS |
static char[] |
CA |
static char[] |
DIGITS |
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 |
构造器和说明 |
---|
IOUtils() |
限定符和类型 | 方法和说明 |
---|---|
static void |
clearChars() |
static void |
close(Closeable x) |
static void |
decode(CharsetDecoder charsetDecoder,
ByteBuffer byteBuf,
CharBuffer charByte) |
static byte[] |
decodeFast(char[] chars,
int offset,
int charsLen)
Decodes a BASE64 encoded char array that is known to be resonably well formatted.
|
static byte[] |
decodeFast(String s)
Decodes a BASE64 encoded string that is known to be resonably well formatted.
|
static byte[] |
decodeFast(String chars,
int offset,
int charsLen) |
static boolean |
firstIdentifier(char ch) |
static void |
getChars(byte b,
int index,
char[] buf) |
static char[] |
getChars(int length) |
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 CharsetDecoder |
getUTF8Decoder() |
static boolean |
isIdent(char ch) |
static String |
readAll(Reader reader) |
static int |
stringSize(int x) |
static int |
stringSize(long x) |
static String |
toString(InputStream in) |
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 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[] decodeFast(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[] decodeFast(String chars, int offset, int charsLen)
public static byte[] decodeFast(String s)
s
- The source string. Length 0 will return an empty array. null
will throw an exception.public static CharsetDecoder getUTF8Decoder()
public static void clearChars()
public static char[] getChars(int length)
public static String toString(InputStream in) throws Exception
Exception
Copyright © 2012–2016 Alibaba Group. All rights reserved.