Class ConstantInputStream

  • All Implemented Interfaces:
    com.amazonaws.internal.MetricAware, com.amazonaws.internal.Releasable, Closeable, AutoCloseable

    public class ConstantInputStream
    extends com.amazonaws.internal.SdkInputStream
    A test input stream that always return the same value.
    • Constructor Detail

      • ConstantInputStream

        public ConstantInputStream​(long total,
                                   byte val)
      • ConstantInputStream

        public ConstantInputStream​(long total,
                                   byte val,
                                   boolean randomlyReturnZeros)
    • Method Detail

      • getRandomZerosCount

        public int getRandomZerosCount()
      • getWrappedInputStream

        protected InputStream getWrappedInputStream()
        Description copied from class: com.amazonaws.internal.SdkInputStream
        Returns the underlying input stream, if any, from the subclass; or null if there is no underlying input stream.
        Specified by:
        getWrappedInputStream in class com.amazonaws.internal.SdkInputStream