src/main/java/com/googlecode/javaewah/IteratorUtil.java
public static EWAHCompressedBitmap materialize(final IteratingRLW i) {
        EWAHCompressedBitmap ewah = new EWAHCompressedBitmap();
        materialize(i, ewah);
        return ewah;
    }
public static EWAHCompressedBitmap materialize(final IteratingRLW i) {
        EWAHCompressedBitmap ewah = new EWAHCompressedBitmap();
        materialize(i, ewah);
        return ewah;
    }
Turn an iterator into a bitmap.

This can be used to effectively clone a bitmap in the following
manner:

<code>
EWAHCompressedBitmap n = IteratorUtil.materialize(bitmap.getIteratingRLW()));
n.setSizeInBitsWithinLastWord(bitmap.sizeInBits());
</code>

@param i iterator we wish to materialize
@return materialized version of the iterator