Package com.android.dx.io.instructions
Class ShortArrayCodeInput
java.lang.Object
com.android.dx.io.instructions.BaseCodeCursor
com.android.dx.io.instructions.ShortArrayCodeInput
- All Implemented Interfaces:
CodeCursor
,CodeInput
Implementation of
CodeInput
that reads from a short[]
.-
Constructor Summary
-
Method Summary
Methods inherited from class com.android.dx.io.instructions.BaseCodeCursor
advance, baseAddressForCursor, cursor, setBaseAddress
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.android.dx.io.instructions.CodeCursor
baseAddressForCursor, cursor, setBaseAddress
-
Constructor Details
-
ShortArrayCodeInput
public ShortArrayCodeInput(short[] array) Constructs an instance.
-
-
Method Details
-
hasMore
public boolean hasMore()Returns whether there are any more code units to read. This is analogous tohasNext()
on an interator. -
read
Reads a code unit.- Specified by:
read
in interfaceCodeInput
- Throws:
EOFException
-
readInt
Reads two code units, treating them as a little-endianint
.- Specified by:
readInt
in interfaceCodeInput
- Throws:
EOFException
-
readLong
Reads four code units, treating them as a little-endianlong
.- Specified by:
readLong
in interfaceCodeInput
- Throws:
EOFException
-