title: Java: multiple threads read the same InputStream at the same time
body: <p>There is <code>private InputStream inputStream;</code>. Now, I would like to split the inputStream into 10 chunks, which return another 10 InputStream. 10  threads will read the 10 InputStream at the same time. How to do this?</p>
  
  <p>Does the following piece of codes work?</p>
  
  <pre><code>BoundedInputStream stream = new BoundedInputStream(inputStream, chunkSize);
  </code></pre>