Table of Contents

Method OpenGeneric

Namespace
AvroSharp.Streams
Assembly
AvroSharp.dll

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

stream Stream

The source.

writerSchema AvroSchema

The schema the objects were written with; a stream does not record it.

readerSchema AvroSchema

The schema to read the objects as; null reads them as written.

options AvroStreamOptions

The stream options, or null for the defaults.

readerOptions GenericDatumReaderOptions

The generic reader's options, or null for the defaults.

Returns

AvroStreamReader<AvroValue>