com.android.dx.io.instructions
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
 boolean hasMore()
          Returns whether there are any more code units to read.
 int read()
          Reads a code unit.
 int readInt()
          Reads two code units, treating them as a little-endian int.
 long readLong()
          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 Detail

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


Copyright © 2015. All rights reserved.