code: public static void copyStreamSafely( InputStream in, ByteArrayOutputStream os ) throws IOException {
  
  		try {
  			copyStreamUnsafelyUseWithCaution( in, os );
  
  		} finally {
  			in.close();
  		}
  	}
docs: Copies the content from in into os.
  <p>
  This method closes the input stream.
  <i>os</i> does not need to be closed.
  </p>
  
  @param in an input stream (not null)
  @param os an output stream (not null)
  @throws IOException if an error occurred