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
  • 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)
    • decodeBase64

      public static byte[] decodeBase64(String s)