Class UnreliableRandomInputStream

  • All Implemented Interfaces:
    Closeable, AutoCloseable

    public class UnreliableRandomInputStream
    extends RandomInputStream
    Subclass of RandomInputStream that, in addition to spitting out a set length of random characters, throws an IOException. Intended for testing error recovery in the client library.
    Author:
    Jason Fulghum
    • Constructor Detail

      • UnreliableRandomInputStream

        public UnreliableRandomInputStream​(long lengthInBytes)
        Constructs a new unreliable random data input stream of the specified number of bytes.
        Parameters:
        lengthInBytes - The number of bytes of data contained in the new stream.