Package com.alibaba.fastjson2.util
Class IOUtils
java.lang.Object
com.alibaba.fastjson2.util.IOUtils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic intdecodeUTF8(byte[] src, int off, int len, byte[] dst) static intdecodeUTF8(byte[] src, int off, int len, char[] dst) static intencodeUTF8(byte[] src, int offset, int len, byte[] dst, int dp) static intencodeUTF8(char[] src, int offset, int len, byte[] dst, int dp) static voidgetChars(int i, int index, byte[] buf) static voidgetChars(int i, int index, char[] buf) static voidgetChars(long i, int index, byte[] buf) static voidgetChars(long i, int index, char[] buf) static intgetShanghaiZoneOffsetTotalSeconds(long seconds) static booleanstatic intstringSize(int x) static intstringSize(long x)
-
Field Details
-
digits
public static final byte[] digits -
DigitTens
public static final byte[] DigitTens -
DigitOnes
public static final byte[] DigitOnes -
OFFSET_0800_TOTAL_SECONDS
public static final int OFFSET_0800_TOTAL_SECONDS- See Also:
-
DEFAULT_ZONE_ID
-
SHANGHAI_ZONE_ID_NAME
- See Also:
-
SHANGHAI_ZONE_ID
-
SHANGHAI_ZONE_RULES
-
-
Constructor Details
-
IOUtils
public IOUtils()
-
-
Method Details
-
stringSize
public static int stringSize(int x) -
stringSize
public static int stringSize(long x) -
getChars
public static void getChars(int i, int index, byte[] buf) -
getChars
public static void getChars(int i, int index, char[] buf) -
getChars
public static void getChars(long i, int index, byte[] buf) -
getChars
public static void getChars(long i, int index, char[] buf) -
encodeUTF8
public static int encodeUTF8(byte[] src, int offset, int len, byte[] dst, int dp) -
encodeUTF8
public static int encodeUTF8(char[] src, int offset, int len, byte[] dst, int dp) -
isNumber
-
close
-
decodeUTF8
public static int decodeUTF8(byte[] src, int off, int len, byte[] dst) -
decodeUTF8
public static int decodeUTF8(byte[] src, int off, int len, char[] dst) -
getShanghaiZoneOffsetTotalSeconds
public static int getShanghaiZoneOffsetTotalSeconds(long seconds)
-