cryptix.math
Class RandomStream

java.lang.Object
  extended byjava.io.InputStream
      extended bycryptix.math.RandomStream
Direct Known Subclasses:
PseudoRandomStream

public abstract class RandomStream
extends java.io.InputStream

An abstract class whose subclasses generate potentially random bytes.

Copyright © 1995-1997 Systemics Ltd on behalf of the Cryptix Development Team.
All rights reserved.

$Revision: 1.1.1.1 $

Since:
Cryptix 2.2 or earlier
Author:
unattributed

Constructor Summary
RandomStream()
           
 
Method Summary
protected abstract  byte nextByte()
           
 int read()
           
 int read(byte[] b)
           
 int read(byte[] b, int off, int len)
           
protected abstract  void seed(byte[] seed)
           
 long skip(long n)
           
 
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, reset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomStream

public RandomStream()
Method Detail

read

public int read()

read

public int read(byte[] b)

read

public int read(byte[] b,
                int off,
                int len)

skip

public long skip(long n)

seed

protected abstract void seed(byte[] seed)

nextByte

protected abstract byte nextByte()