title: How to clear Buffer from BufferedInputStream in android
body: <p>for eg if client send "nick" then <code>BuffredInputStream</code> will read "nick" and then if client send "sanders" then <code>BuffredInputStream</code> will automatically append "nicksanders".</p>
  
  <p>so how to clear old chunck from <code>BuffredInputStream</code> so that i always get new string every time from while reading from <code>BuffredInputStream</code>...</p>
  
  <p>code:</p>
  
  <pre><code>if (bos1.available() &gt; 0) {
  
  int ij = bos1.read();
  
  // msgLog is string
  msgLog += new Character((char) ij).toString();
  
  }
  </code></pre>