- java.lang.Object
-
- com.ibm.dtfj.phd.util.NumberStream
-
- Direct Known Subclasses:
BufferedNumberStream
,SortedNumberStream
public class NumberStream extends Object
This class provides a stream of integers in a relatively compact format. The stream is first written to, then rewound and then read.
-
-
Constructor Summary
Constructors Constructor Description NumberStream()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
int
elementCount()
void
flush()
boolean
hasMore()
static void
main(String[] args)
long
readLong()
void
rewind()
void
setBitStream(BitStream bitStream)
int[]
toIntArray()
long[]
toLongArray()
void
writeLong(long n)
-
-
-
Method Detail
-
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(String[] args)
-
-