Package jadx.core.xmlgen
Class ParserStream
- java.lang.Object
-
- java.io.InputStream
-
- jadx.core.xmlgen.ParserStream
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class ParserStream extends java.io.InputStream
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.nio.charset.CharsetSTRING_CHARSET_UTF16protected static java.nio.charset.CharsetSTRING_CHARSET_UTF8
-
Constructor Summary
Constructors Constructor Description ParserStream(@NotNull java.io.InputStream inputStream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckInt16(int expected, java.lang.String error)voidcheckInt8(int expected, java.lang.String error)voidcheckPos(long expectedOffset, java.lang.String error)longgetPos()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)intreadInt16()intreadInt32()int[]readInt32Array(int count)intreadInt8()byte[]readInt8Array(int count)java.lang.StringreadString16Fixed(int len)longreadUInt32()voidreset()longskip(long count)voidskipToPos(long expectedOffset, java.lang.String error)java.lang.StringtoString()
-
-
-
Method Detail
-
getPos
public long getPos()
-
readInt8
public int readInt8() throws java.io.IOException- Throws:
java.io.IOException
-
readInt16
public int readInt16() throws java.io.IOException- Throws:
java.io.IOException
-
readInt32
public int readInt32() throws java.io.IOException- Throws:
java.io.IOException
-
readUInt32
public long readUInt32() throws java.io.IOException- Throws:
java.io.IOException
-
readString16Fixed
public java.lang.String readString16Fixed(int len) throws java.io.IOException- Throws:
java.io.IOException
-
readInt32Array
public int[] readInt32Array(int count) throws java.io.IOException- Throws:
java.io.IOException
-
readInt8Array
public byte[] readInt8Array(int count) throws java.io.IOException- Throws:
java.io.IOException
-
skip
public long skip(long count) throws java.io.IOException- Overrides:
skipin classjava.io.InputStream- Throws:
java.io.IOException
-
checkInt8
public void checkInt8(int expected, java.lang.String error) throws java.io.IOException- Throws:
java.io.IOException
-
checkInt16
public void checkInt16(int expected, java.lang.String error) throws java.io.IOException- Throws:
java.io.IOException
-
checkPos
public void checkPos(long expectedOffset, java.lang.String error) throws java.io.IOException- Throws:
java.io.IOException
-
skipToPos
public void skipToPos(long expectedOffset, java.lang.String error) throws java.io.IOException- Throws:
java.io.IOException
-
mark
public void mark(int len)
- Overrides:
markin classjava.io.InputStream
-
reset
public void reset() throws java.io.IOException- Overrides:
resetin classjava.io.InputStream- Throws:
java.io.IOException
-
readFully
public void readFully(byte[] b) throws java.io.IOException- Throws:
java.io.IOException
-
readFully
public void readFully(byte[] b, int off, int len) throws java.io.IOException- Throws:
java.io.IOException
-
read
public int read() throws java.io.IOException- Specified by:
readin classjava.io.InputStream- Throws:
java.io.IOException
-
read
public int read(@NotNull @org.jetbrains.annotations.NotNull byte[] b, int off, int len) throws java.io.IOException- Overrides:
readin classjava.io.InputStream- Throws:
java.io.IOException
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-