Class IOUtils

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

public class IOUtils extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final byte[]
     
    static final byte[]
     
    static final byte[]
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
     
    static int
    decodeUTF8(byte[] src, int off, int len, byte[] dst)
     
    static int
    decodeUTF8(byte[] src, int off, int len, char[] dst)
     
    static int
    encodeUTF8(byte[] src, int offset, int len, byte[] dst, int dp)
     
    static int
    encodeUTF8(char[] src, int offset, int len, byte[] dst, int dp)
     
    static void
    getChars(int i, int index, byte[] buf)
     
    static void
    getChars(int i, int index, char[] buf)
     
    static void
    getChars(long i, int index, byte[] buf)
     
    static void
    getChars(long i, int index, char[] buf)
     
    static boolean
     
    static int
    stringSize(int x)
     
    static int
    stringSize(long x)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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)