com.intel.cosbench.driver.random
Class RandomInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by org.apache.commons.io.input.NullInputStream
          extended by com.intel.cosbench.driver.random.RandomInputStream
All Implemented Interfaces:
java.io.Closeable

public class RandomInputStream
extends org.apache.commons.io.input.NullInputStream

This class is to generate random data as input stream for data uploading.

Author:
ywang19

Constructor Summary
RandomInputStream(long size, java.util.Random random, boolean isRandom, boolean hashCheck)
           
 
Method Summary
 
Methods inherited from class org.apache.commons.io.input.NullInputStream
available, close, getPosition, getSize, mark, markSupported, read, read, read, reset, skip
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomInputStream

public RandomInputStream(long size,
                         java.util.Random random,
                         boolean isRandom,
                         boolean hashCheck)