cryptix.math
Class RandomStream

java.lang.Object
  |
  +--java.io.InputStream
        |
        +--cryptix.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()
Overrides:
read in class java.io.InputStream

read

public int read(byte[] b)
Overrides:
read in class java.io.InputStream

read

public int read(byte[] b,
                int off,
                int len)
Overrides:
read in class java.io.InputStream

skip

public long skip(long n)
Overrides:
skip in class java.io.InputStream

seed

protected abstract void seed(byte[] seed)

nextByte

protected abstract byte nextByte()