add a method to read an Avro InputStream