Class NumberStream

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 Details

    • NumberStream

      public NumberStream()
  • Method Details

    • 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)