Class IOUtils

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

public class IOUtils extends Object
  • 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

      public static final ZoneId DEFAULT_ZONE_ID
    • SHANGHAI_ZONE_ID_NAME

      public static final String SHANGHAI_ZONE_ID_NAME
      See Also:
    • SHANGHAI_ZONE_ID

      public static final ZoneId SHANGHAI_ZONE_ID
    • SHANGHAI_ZONE_RULES

      public static final ZoneRules 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

      public static boolean isNumber(String str)
    • close

      public static void close(Closeable x)
    • 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)