Filter IO streams with a block. Ruby's FilterInputStream.