Method OpenGeneric
- Namespace
- AvroSharp.Containers
- Assembly
- AvroSharp.dll
OpenGeneric(Stream, AvroSchema?, AvroFileReaderOptions?, GenericDatumReaderOptions?)
Reads a file's header and returns a reader of its objects as generic values.
public static AvroFileReader<AvroValue> OpenGeneric(Stream stream, AvroSchema? readerSchema = null, AvroFileReaderOptions? options = null, GenericDatumReaderOptions? readerOptions = null)
Parameters
streamStreamThe source, positioned at the start of the file.
readerSchemaAvroSchemaThe schema to read the objects as, resolved against the file's schema; null reads them as written.
optionsAvroFileReaderOptionsThe file options, or null for the defaults.
readerOptionsGenericDatumReaderOptionsThe generic reader's options, or null for the defaults.