title: When I close a BufferedInputStream, is the underlying InputStream also closed?
body: <pre><code>InputStream in = SomeClass.getInputStream(...);
  BufferedInputStream bis = new BufferedInputStream(in);
  
  try {
      // read data from bis
  } finally {
      bis.close();
      in.close();    
  }
  </code></pre>
  
  <p>The javadoc for <code>BufferedInputStream.close()</code> doesn't mention whether or not the underlying stream is closed:</p>
  
  <blockquote>
    <p>Closes this input stream and releases any system resources associated
    with the stream. Once the stream has been closed, further read(),
    available(), reset(), or skip() invocations will throw an IOException.
    Closing a previously closed stream has no effect.</p>
  </blockquote>
  
  <p>Is the explicit call to <code>in.close()</code> necessary, or should it be closed by the call to <code>bis.close()</code>?</p>