Click or drag to resize
TransitFactoryReader Method (TransitFactoryFormat, Stream, IImmutableDictionary`2String, IReadHandler, IDefaultReadHandlerObject)

[This is preliminary documentation and is subject to change.]

Creates a reader instance.

Namespace: NForza.Transit
Assembly: Transit (in Transit.dll) Version: 0.8.1-alpha
Syntax
C#
public static IReader Reader(
	TransitFactoryFormat type,
	Stream input,
	IImmutableDictionary<string, IReadHandler> customHandlers,
	IDefaultReadHandler<Object> customDefaultHandler
)

Parameters

type
Type: NForza.TransitTransitFactoryFormat
The format to read in.
input
Type: System.IOStream
The input stream to read from.
customHandlers
Type: IImmutableDictionaryString, IReadHandler
A dictionary of custom ReadHandlers to use in addition or in place of the default ReadHandlers.
customDefaultHandler
Type: NForza.TransitIDefaultReadHandlerObject
A DefaultReadHandler to use for processing encoded values for which there is no read handler.

Return Value

Type: IReader
A reader.
See Also