Interface CodeInput

All Superinterfaces:
CodeCursor
All Known Implementing Classes:
ShortArrayCodeInput

public interface CodeInput extends CodeCursor
Input stream of code units, for reading in Dalvik bytecode.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns whether there are any more code units to read.
    int
    Reads a code unit.
    int
    Reads two code units, treating them as a little-endian int.
    long
    Reads four code units, treating them as a little-endian long.

    Methods inherited from interface com.android.dx.io.instructions.CodeCursor

    baseAddressForCursor, cursor, setBaseAddress
  • Method Details

    • hasMore

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

      int read() throws EOFException
      Reads a code unit.
      Throws:
      EOFException
    • readInt

      int readInt() throws EOFException
      Reads two code units, treating them as a little-endian int.
      Throws:
      EOFException
    • readLong

      long readLong() throws EOFException
      Reads four code units, treating them as a little-endian long.
      Throws:
      EOFException