Class ExtDataInput

java.lang.Object
jadx.core.utils.android.DataInputDelegate
jadx.core.utils.android.ExtDataInput
All Implemented Interfaces:
DataInput

public class ExtDataInput extends DataInputDelegate
  • Constructor Details

    • ExtDataInput

      public ExtDataInput(InputStream in)
    • ExtDataInput

      public ExtDataInput(DataInput delegate)
  • Method Details

    • readIntArray

      public int[] readIntArray(int length) throws IOException
      Throws:
      IOException
    • skipInt

      public void skipInt() throws IOException
      Throws:
      IOException
    • skipCheckInt

      public void skipCheckInt(int expected) throws IOException
      Throws:
      IOException
    • skipCheckShort

      public void skipCheckShort(short expected) throws IOException
      Throws:
      IOException
    • skipCheckByte

      public void skipCheckByte(byte expected) throws IOException
      Throws:
      IOException
    • skipCheckChunkTypeInt

      public void skipCheckChunkTypeInt(int expected, int possible) throws IOException
      Throws:
      IOException
    • skipBytes

      public final int skipBytes(int n) throws IOException
      The general contract of DataInput doesn't guarantee all the bytes requested will be skipped and failure can occur for many reasons. We override this to try harder to skip all the bytes requested (this is similar to DataInputStream's wrapper).
      Specified by:
      skipBytes in interface DataInput
      Overrides:
      skipBytes in class DataInputDelegate
      Throws:
      IOException
    • readNullEndedString

      public String readNullEndedString(int length, boolean fixed) throws IOException
      Throws:
      IOException