Method OpenGeneric
OpenGeneric(Stream, AvroSchema, AvroSchema?, AvroStreamOptions?, GenericDatumReaderOptions?)
Creates a reader of the objects in a stream as generic values.
public static AvroStreamReader<AvroValue> OpenGeneric(Stream stream, AvroSchema writerSchema, AvroSchema? readerSchema = null, AvroStreamOptions? options = null, GenericDatumReaderOptions? readerOptions = null)
Parameters
streamStreamThe source.
writerSchemaAvroSchemaThe schema the objects were written with; a stream does not record it.
readerSchemaAvroSchemaThe schema to read the objects as; null reads them as written.
optionsAvroStreamOptionsThe stream options, or null for the defaults.
readerOptionsGenericDatumReaderOptionsThe generic reader's options, or null for the defaults.