make DemoInputStream accept any input stream as input