Class UnreliableRandomInputStream

java.lang.Object
java.io.InputStream
com.amazonaws.test.util.RandomInputStream
com.amazonaws.test.util.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 invalid input: '<'fulghum@amazon.com>
  • Constructor Details

    • 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.
  • Method Details