Table of Contents

Class FixedLengthReader

Namespace
NuvTools.Report.FixedLength
Assembly
NuvTools.Report.FixedLength.dll

Reads fixed-length (positional) content and maps it to strongly-typed objects using attribute-based field mapping.

public class FixedLengthReader : IFixedLengthReader
Inheritance
FixedLengthReader
Implements
Inherited Members

Methods

ReadBase64<T>(string, FixedLengthReaderOptions?)

Reads fixed-length records from a base64-encoded string and returns a list of mapped objects.

public List<T> ReadBase64<T>(string base64, FixedLengthReaderOptions? options = null) where T : new()

Parameters

base64 string
options FixedLengthReaderOptions

Returns

List<T>

Type Parameters

T

ReadBytes<T>(byte[], FixedLengthReaderOptions?)

Reads fixed-length records from a byte array and returns a list of mapped objects.

public List<T> ReadBytes<T>(byte[] data, FixedLengthReaderOptions? options = null) where T : new()

Parameters

data byte[]
options FixedLengthReaderOptions

Returns

List<T>

Type Parameters

T

ReadStream<T>(Stream, FixedLengthReaderOptions?)

Reads fixed-length records from a stream and returns a list of mapped objects.

public List<T> ReadStream<T>(Stream stream, FixedLengthReaderOptions? options = null) where T : new()

Parameters

stream Stream
options FixedLengthReaderOptions

Returns

List<T>

Type Parameters

T

ReadString<T>(string, FixedLengthReaderOptions?)

Reads fixed-length records from a string and returns a list of mapped objects.

public List<T> ReadString<T>(string content, FixedLengthReaderOptions? options = null) where T : new()

Parameters

content string
options FixedLengthReaderOptions

Returns

List<T>

Type Parameters

T