Class FixedWidthExtractorStreamOptions<TRecord>
- Namespace
- Wolfgang.Etl.FixedWidth
- Assembly
- Wolfgang.Etl.FixedWidth.dll
Configuration for a FixedWidthExtractor<TRecord> constructed over a
Stream: everything in FixedWidthExtractorOptions<TRecord> plus
the Encoding used to decode the bytes. The TextReader
constructors take the base record instead, because a reader has already decoded its bytes and an
Encoding there would be settable but inert.
public sealed record FixedWidthExtractorStreamOptions<TRecord> : FixedWidthExtractorOptions<TRecord>, IEquatable<ExtractorOptions>, IEquatable<FixedWidthExtractorOptions<TRecord>>, IEquatable<FixedWidthExtractorStreamOptions<TRecord>> where TRecord : notnull
Type Parameters
TRecordThe record type the extractor produces.
- Inheritance
-
ExtractorOptionsFixedWidthExtractorOptions<TRecord>FixedWidthExtractorStreamOptions<TRecord>
- Implements
-
IEquatable<ExtractorOptions>IEquatable<FixedWidthExtractorOptions<TRecord>>IEquatable<FixedWidthExtractorStreamOptions<TRecord>>
- Inherited Members
-
ExtractorOptions.ToString()ExtractorOptions.GetHashCode()ExtractorOptions.Equals(ExtractorOptions)ExtractorOptions.<Clone>$()ExtractorOptions.ReportingIntervalExtractorOptions.MaximumItemCountExtractorOptions.SkipItemCountExtractorOptions.ErrorPolicy
Constructors
FixedWidthExtractorStreamOptions()
Initializes a new instance of the FixedWidthExtractorStreamOptions<TRecord> class.
public FixedWidthExtractorStreamOptions()
Properties
Encoding
The encoding used to decode the stream. Defaults to UTF8.
public Encoding Encoding { get; init; }
Property Value
Exceptions
- ArgumentNullException
The value is null.