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

public final Class ShortArrayCodeInput

extends BaseCodeCursor
implements CodeInput
Class Inheritance
All Implemented Interfaces
org.droidparts.dexmaker.dx.io.instructions.CodeInput, org.droidparts.dexmaker.dx.io.instructions.CodeCursor
Imports
java.io.EOFException

Implementation of CodeInput that reads from a short[].

Field Summary

Modifier and TypeField and Description
private final short[]
array

source array to read from

Constructor Summary

AccessConstructor and Description
public
ShortArrayCodeInput(short[] array)

Constructs an instance.

Method Summary

Modifier and TypeMethod and Description
public boolean
hasMore()

Implements org.droidparts.dexmaker.dx.io.instructions.CodeInput.hasMore.

Returns whether there are any more code units to read.
public int
public int
readInt()

Implements org.droidparts.dexmaker.dx.io.instructions.CodeInput.readInt.

Reads two code units, treating them as a little-endian int.
public long
readLong()

Implements org.droidparts.dexmaker.dx.io.instructions.CodeInput.readLong.

Reads four code units, treating them as a little-endian long.
Inherited from org.droidparts.dexmaker.dx.io.instructions.BaseCodeCursor:
advancebaseAddressForCursorcursorsetBaseAddress

Field Detail

arrayback to summary
private final short[] array

source array to read from

Constructor Detail

ShortArrayCodeInputback to summary
public ShortArrayCodeInput(short[] array)

Constructs an instance.

Method Detail

hasMoreback to summary
public boolean hasMore()

Implements org.droidparts.dexmaker.dx.io.instructions.CodeInput.hasMore.

Doc from org.droidparts.dexmaker.dx.io.instructions.CodeInput.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

Implements org.droidparts.dexmaker.dx.io.instructions.CodeInput.read.

Doc from org.droidparts.dexmaker.dx.io.instructions.CodeInput.read.

Reads a code unit.

readIntback to summary
public int readInt() throws EOFException

Implements org.droidparts.dexmaker.dx.io.instructions.CodeInput.readInt.

Doc from org.droidparts.dexmaker.dx.io.instructions.CodeInput.readInt.

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

readLongback to summary
public long readLong() throws EOFException

Implements org.droidparts.dexmaker.dx.io.instructions.CodeInput.readLong.

Doc from org.droidparts.dexmaker.dx.io.instructions.CodeInput.readLong.

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