remove the read method for input stream