Class NumberStream
java.lang.Object
com.ibm.dtfj.phd.util.NumberStream
- Direct Known Subclasses:
BufferedNumberStream
,SortedNumberStream
This class provides a stream of integers in a relatively compact format. The stream
is first written to, then rewound and then read.
-
Constructor Details
-
NumberStream
public NumberStream()
-
-
Method Details
-
setBitStream
-
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
-