Module openj9.dtfj

Class 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 Detail

      • NumberStream

        public NumberStream()
    • 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)