Package org.jf.dexlib2.dexbacked.util
Class VariableSizeLookaheadIterator<T>
java.lang.Object
com.google.common.collect.UnmodifiableIterator<T>
com.google.common.collect.AbstractIterator<T>
org.jf.dexlib2.dexbacked.util.VariableSizeLookaheadIterator<T>
- All Implemented Interfaces:
Iterator<T>
public abstract class VariableSizeLookaheadIterator<T>
extends com.google.common.collect.AbstractIterator<T>
implements Iterator<T>
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedVariableSizeLookaheadIterator(DexBuffer buffer, int offset) -
Method Summary
Modifier and TypeMethodDescriptionprotected Tfinal intprotected abstract TreadNextItem(DexReader reader) Reads the next item from reader.Methods inherited from class com.google.common.collect.AbstractIterator
endOfData, hasNext, next, peekMethods inherited from class com.google.common.collect.UnmodifiableIterator
removeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining, hasNext, next, remove
-
Field Details
-
reader
-
-
Constructor Details
-
VariableSizeLookaheadIterator
-
-
Method Details
-
readNextItem
Reads the next item from reader. If the end of the list has been reached, it should call endOfData. endOfData has a return value of T, so you can simplyreturn endOfData()- Returns:
- The item that was read. If endOfData was called, the return value is ignored.
-
computeNext
- Specified by:
computeNextin classcom.google.common.collect.AbstractIterator<T>
-
getReaderOffset
public final int getReaderOffset()
-