com.ibm.jvm.ras.util
Class NumberStream
java.lang.Object
com.ibm.jvm.ras.util.NumberStream
- public final class NumberStream
- extends java.lang.Object
This class provides a stream of integers in a relatively compact format. The stream
is first written to, then rewound and then read.
- See Also:
- Dave Griffiths home page
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NumberStream
public NumberStream()
NumberStream
public NumberStream(boolean sorted)
setBitStream
public void setBitStream(BitStream bitStream)
writeLong
public void writeLong(long n)
readLong
public long readLong()
flush
public void flush()
rewind
public void rewind()
clear
public void clear()
hasMore
public boolean hasMore()
elementCount
public int elementCount()
toIntArray
public int[] toIntArray()
toLongArray
public long[] toLongArray()
main
public static void main(java.lang.String[] args)
© Copyright IBM Corp. 2007. All Rights Reserved.