com.ibm.jvm.ras.util
Class NumberStream

java.lang.Object
  extended bycom.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

Constructor Summary
NumberStream()
           
NumberStream(boolean sorted)
           
 
Method Summary
 void clear()
           
 int elementCount()
           
 void flush()
           
 boolean hasMore()
           
static void main(java.lang.String[] args)
           
 long readLong()
           
 void rewind()
           
 void setBitStream(BitStream bitStream)
           
 int[] toIntArray()
           
 long[] toLongArray()
           
 void writeLong(long n)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumberStream

public NumberStream()

NumberStream

public NumberStream(boolean sorted)
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(java.lang.String[] args)


© Copyright IBM Corp. 2007. All Rights Reserved.