title: get OutputStream from BufferedReader
body: <p>I have two object:</p>
  
  <pre><code>BufferedReader br;
  CMSSignedData cms;
  </code></pre>
  
  <p>I have to write cms content to <code>BufferedReader</code>
  cms has this method:</p>
  
  <pre><code> cms.getSignedContent().write(OutputStream os); 
  </code></pre>
  
  <p>But how to get the <code>OutputStream</code> from <code>BufferedReader</code>?</p>
  
  <p>This is my attemp:</p>
  
  <pre><code>        ByteArrayOutputStream os=new ByteArrayOutputStream();
          cms.getSignedContent().write(os);
          InputStream is=new ByteArrayInputStream(os.toByteArray());  
          BufferedReader br = new BufferedReader(new InputStreamReader(is));
  </code></pre>
  
  <p>But I don't think this is the best way.</p>