implemented read() method for jvm input stream