Top Description Methods
com.googlecode.javaewah32

public Interface IteratingRLW32

Known Direct Implementers
com.googlecode.javaewah32.BufferedIterator32, com.googlecode.javaewah32.IteratingBufferedRunningLengthWord32

High-level iterator over a compressed bitmap.

Method Summary

Modifier and TypeMethod and Description
public IteratingRLW32

Returns:

a copy of the iterator
clone
()

public void
discardFirstWords(int
the number of words to discard
x
)

public void
discardLiteralWords(int
the number of words to discard
x
)

Discard x literal words (assumes that there is no running word)

public void
discardRunningWords()

Discard all running words

public int

Returns:

the literal word at the given index.
getLiteralWordAt
(int
where the literal word is
index
)

public int

Returns:

the number of literal (non-fill) words
getNumberOfLiteralWords
()

public boolean

Returns:

the bit used for the fill bits
getRunningBit
()

public int

Returns:

length of the run of fill words
getRunningLength
()

public boolean

Returns:

whether there is more
next
()

public int

Returns:

sum of getRunningLength() and getNumberOfLiteralWords()
size
()

Method Detail

cloneback to summary
public IteratingRLW32 clone() throws CloneNotSupportedException
Returns:IteratingRLW32

a copy of the iterator

Exceptions
CloneNotSupportedException:
this should not be thrown in theory
discardFirstWordsback to summary
public void discardFirstWords(int x)
Parameters
x:int

the number of words to discard

discardLiteralWordsback to summary
public void discardLiteralWords(int x)

Discard x literal words (assumes that there is no running word)

Parameters
x:int

the number of words to discard

discardRunningWordsback to summary
public void discardRunningWords()

Discard all running words

getLiteralWordAtback to summary
public int getLiteralWordAt(int index)
Parameters
index:int

where the literal word is

Returns:int

the literal word at the given index.

getNumberOfLiteralWordsback to summary
public int getNumberOfLiteralWords()
Returns:int

the number of literal (non-fill) words

getRunningBitback to summary
public boolean getRunningBit()
Returns:boolean

the bit used for the fill bits

getRunningLengthback to summary
public int getRunningLength()
Returns:int

length of the run of fill words

nextback to summary
public boolean next()
Returns:boolean

whether there is more

sizeback to summary
public int size()
Returns:int

sum of getRunningLength() and getNumberOfLiteralWords()