Package org.openjdk.asmtools.jdec
Class NestedByteArrayInputStream
java.lang.Object
java.io.InputStream
java.io.ByteArrayInputStream
org.openjdk.asmtools.jdec.NestedByteArrayInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
this class provides functionality needed to read class files:
- methods to read unsigned integers of various length
- counts bytes read so far
-
Field Summary
FieldsFields inherited from class java.io.ByteArrayInputStream
buf, count, mark, pos
-
Constructor Summary
ConstructorsConstructorDescriptionNestedByteArrayInputStream
(byte[] buf) NestedByteArrayInputStream
(byte[] buf, int offset, int length) -
Method Summary
Methods inherited from class java.io.ByteArrayInputStream
available, close, mark, markSupported, read, read, readAllBytes, readNBytes, reset, skip, transferTo
Methods inherited from class java.io.InputStream
nullInputStream, read, readNBytes, skipNBytes
-
Field Details
-
savedStates
Stack savedStates
-
-
Constructor Details
-
NestedByteArrayInputStream
NestedByteArrayInputStream(byte[] buf) -
NestedByteArrayInputStream
NestedByteArrayInputStream(byte[] buf, int offset, int length)
-
-
Method Details
-
getPos
public int getPos() -
enter
public void enter(int range) -
leave
public void leave()
-