Package com.googlecode.javaewah32
Interface IteratingRLW32
-
- All Known Implementing Classes:
BufferedIterator32
,IteratingBufferedRunningLengthWord32
public interface IteratingRLW32
High-level iterator over a compressed bitmap.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IteratingRLW32
clone()
void
discardFirstWords(int x)
void
discardLiteralWords(int x)
Discard x literal words (assumes that there is no running word)void
discardRunningWords()
Discard all running wordsint
getLiteralWordAt(int index)
int
getNumberOfLiteralWords()
boolean
getRunningBit()
int
getRunningLength()
boolean
next()
int
size()
-
-
-
Method Detail
-
next
boolean next()
- Returns:
- whether there is more
-
getLiteralWordAt
int getLiteralWordAt(int index)
- Parameters:
index
- where the literal word is- Returns:
- the literal word at the given index.
-
getNumberOfLiteralWords
int getNumberOfLiteralWords()
- Returns:
- the number of literal (non-fill) words
-
getRunningBit
boolean getRunningBit()
- Returns:
- the bit used for the fill bits
-
size
int size()
- Returns:
- sum of getRunningLength() and getNumberOfLiteralWords()
-
getRunningLength
int getRunningLength()
- Returns:
- length of the run of fill words
-
discardFirstWords
void discardFirstWords(int x)
- Parameters:
x
- the number of words to discard
-
discardRunningWords
void discardRunningWords()
Discard all running words
-
discardLiteralWords
void discardLiteralWords(int x)
Discard x literal words (assumes that there is no running word)- Parameters:
x
- the number of words to discard
-
clone
IteratingRLW32 clone() throws CloneNotSupportedException
- Returns:
- a copy of the iterator
- Throws:
CloneNotSupportedException
- this should not be thrown in theory
-
-