public class BinaryClassSource
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
BinaryClassSource.BigEndianReader |
static interface |
BinaryClassSource.ByteReader |
class |
BinaryClassSource.LittleEndianReader |
Modifier and Type | Field and Description |
---|---|
protected BinaryClassSource.ByteReader |
byteReader |
protected byte[] |
data |
protected int |
pc |
protected int |
pos |
protected int[] |
posStack |
protected int |
top |
Modifier | Constructor and Description |
---|---|
protected |
BinaryClassSource(byte[] data,
int pos) |
protected |
BinaryClassSource(java.io.File file) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
dataToString(int startPos,
int nBytes) |
protected void |
dumpData(int startPos,
int nBytes) |
protected void |
error(java.lang.String msg) |
byte[] |
getData()
obtain current classfile data.
|
int |
getPos() |
boolean |
hasMoreData() |
protected BinaryClassSource.ByteReader |
initializeByteReader() |
void |
popPos() |
void |
pushPos() |
byte[] |
read(int n) |
int |
readByte() |
java.lang.String |
readByteString(int nChars) |
protected void |
readData(java.io.InputStream is) |
static java.lang.String |
readModifiedUTF8String(byte[] data,
int pos,
int len) |
int |
readUByte() |
void |
setPos(int newPos) |
void |
stopParsing() |
protected byte[] data
protected int pos
protected int pc
protected int[] posStack
protected int top
protected BinaryClassSource.ByteReader byteReader
protected BinaryClassSource(byte[] data, int pos)
protected BinaryClassSource(java.io.File file) throws ClassParseException
ClassParseException
protected BinaryClassSource.ByteReader initializeByteReader()
protected void readData(java.io.InputStream is) throws ClassParseException
ClassParseException
public void stopParsing()
protected void error(java.lang.String msg) throws ClassParseException
ClassParseException
public byte[] getData()
public int getPos()
public boolean hasMoreData()
public void setPos(int newPos)
public void pushPos()
public void popPos()
public static java.lang.String readModifiedUTF8String(byte[] data, int pos, int len) throws ClassParseException
ClassParseException
public final int readByte()
public final int readUByte()
public final byte[] read(int n)
public java.lang.String readByteString(int nChars)
protected void dumpData(int startPos, int nBytes)
protected java.lang.String dataToString(int startPos, int nBytes)