title: How to use a custom method of a FilterInputStream inside another FilterInputStream
body: <p>I have two streams extending the FilterInputStream class. A is reading doubles from the stream and B shall take those doubles and apply a random noise on them. The question is about how to implement the second stream correctly, so B has access to the custom function of A returning doubles. The chaining shall be as follows:</p>
  
  <p>Source ----> A ----> double ----> B ----> doubles with noise</p>
  
  <p>Best Regards, Turakar</p>