Package jadx.core.xmlgen
Class ParserStream
java.lang.Object
java.io.InputStream
jadx.core.xmlgen.ParserStream
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final byte[]private static final int[]private final InputStreamprivate longprivate longprotected static final Charsetprotected static final Charset -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckInt16(int expected, String error) voidvoidlonggetPos()voidmark(int len) intread()intread(@org.jetbrains.annotations.NotNull byte[] b, int off, int len) voidreadFully(byte[] b) voidreadFully(byte[] b, int off, int len) intintint[]readInt32Array(int count) intreadInt8()byte[]readInt8Array(int count) readString16Fixed(int len) longvoidreset()longskip(long count) voidprivate voidthrowException(String error, int expected, int actual) toString()Methods inherited from class java.io.InputStream
available, close, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, transferTo
-
Field Details
-
STRING_CHARSET_UTF16
-
STRING_CHARSET_UTF8
-
EMPTY_INT_ARRAY
private static final int[] EMPTY_INT_ARRAY -
EMPTY_BYTE_ARRAY
private static final byte[] EMPTY_BYTE_ARRAY -
input
-
readPos
private long readPos -
markPos
private long markPos
-
-
Constructor Details
-
ParserStream
-
-
Method Details
-
getPos
public long getPos() -
readInt8
- Throws:
IOException
-
readInt16
- Throws:
IOException
-
readInt32
- Throws:
IOException
-
readUInt32
- Throws:
IOException
-
readString16Fixed
- Throws:
IOException
-
readInt32Array
- Throws:
IOException
-
readInt8Array
- Throws:
IOException
-
skip
- Overrides:
skipin classInputStream- Throws:
IOException
-
checkInt8
- Throws:
IOException
-
checkInt16
- Throws:
IOException
-
throwException
- Throws:
IOException
-
checkPos
- Throws:
IOException
-
skipToPos
- Throws:
IOException
-
mark
public void mark(int len) - Overrides:
markin classInputStream
-
reset
- Overrides:
resetin classInputStream- Throws:
IOException
-
readFully
- Throws:
IOException
-
readFully
- Throws:
IOException
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
read
public int read(@NotNull @org.jetbrains.annotations.NotNull byte[] b, int off, int len) throws IOException - Overrides:
readin classInputStream- Throws:
IOException
-
toString
-