Top Description Methods
org.droidparts.dexmaker.dx.io.instructions

public Interface CodeInput

extends CodeCursor
Known Direct Implementers
org.droidparts.dexmaker.dx.io.instructions.ShortArrayCodeInput
Imports
java.io.EOFException

Input stream of code units, for reading in Dalvik bytecode.

Method Summary

Modifier and TypeMethod and Description
public boolean
hasMore()

Returns whether there are any more code units to read.

public int
read()

Reads a code unit.

public int
readInt()

Reads two code units, treating them as a little-endian int.

public long
readLong()

Reads four code units, treating them as a little-endian long.

Inherited from org.droidparts.dexmaker.dx.io.instructions.CodeCursor:
baseAddressForCursorcursorsetBaseAddress

Method Detail

hasMoreback to summary
public boolean hasMore()

Returns whether there are any more code units to read. This is analogous to hasNext() on an interator.

readback to summary
public int read() throws EOFException

Reads a code unit.

readIntback to summary
public int readInt() throws EOFException

Reads two code units, treating them as a little-endian int.

readLongback to summary
public long readLong() throws EOFException

Reads four code units, treating them as a little-endian long.