title: How to ignore characters in InputStream?
body: <p>I want to have an <code>InputStream</code> which will ignore certain characters. For example, for given String:</p>
  
  <blockquote>
    <p>ch$ron$osy$nclast$ic_in$fundibu$lum</p>
  </blockquote>
  
  <p>I want my <code>InputStream</code> to ignore all <code>$</code> characters, so it will be read as:</p>
  
  <blockquote>
    <p>chronosynclastic_infundibulum</p>
  </blockquote>
  
  <p>The only option I've found so far is this implementation of <a href="http://jscience.org/experimental/javadoc/org/jscience/io/ReplaceInputStream.html" rel="nofollow"><code>ReplaceInputStream</code></a> in JScience library. </p>
  
  <p>Are there any other (faster/more common) options to do this? </p>