Package jadx.core.utils.android
Class ExtDataInput
- java.lang.Object
-
- jadx.core.utils.android.DataInputDelegate
-
- jadx.core.utils.android.ExtDataInput
-
- All Implemented Interfaces:
java.io.DataInput
public class ExtDataInput extends DataInputDelegate
-
-
Field Summary
-
Fields inherited from class jadx.core.utils.android.DataInputDelegate
mDelegate
-
-
Constructor Summary
Constructors Constructor Description ExtDataInput(java.io.DataInput delegate)ExtDataInput(java.io.InputStream in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int[]readIntArray(int length)java.lang.StringreadNullEndedString(int length, boolean fixed)intskipBytes(int n)The general contract of DataInput doesn't guarantee all the bytes requested will be skipped and failure can occur for many reasons.voidskipCheckByte(byte expected)voidskipCheckChunkTypeInt(int expected, int possible)voidskipCheckInt(int expected)voidskipCheckShort(short expected)voidskipInt()-
Methods inherited from class jadx.core.utils.android.DataInputDelegate
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF
-
-
-
-
Method Detail
-
readIntArray
public int[] readIntArray(int length) throws java.io.IOException- Throws:
java.io.IOException
-
skipInt
public void skipInt() throws java.io.IOException- Throws:
java.io.IOException
-
skipCheckInt
public void skipCheckInt(int expected) throws java.io.IOException- Throws:
java.io.IOException
-
skipCheckShort
public void skipCheckShort(short expected) throws java.io.IOException- Throws:
java.io.IOException
-
skipCheckByte
public void skipCheckByte(byte expected) throws java.io.IOException- Throws:
java.io.IOException
-
skipCheckChunkTypeInt
public void skipCheckChunkTypeInt(int expected, int possible) throws java.io.IOException- Throws:
java.io.IOException
-
skipBytes
public final int skipBytes(int n) throws java.io.IOExceptionThe 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:
skipBytesin interfacejava.io.DataInput- Overrides:
skipBytesin classDataInputDelegate- Throws:
java.io.IOException
-
readNullEndedString
public java.lang.String readNullEndedString(int length, boolean fixed) throws java.io.IOException- Throws:
java.io.IOException
-
-