Interface IFixedLengthReader
- Namespace
- NuvTools.Report.FixedLength
- Assembly
- NuvTools.Report.dll
Reads fixed-length (positional) content and maps it to strongly-typed objects using attribute-based field mapping.
public interface IFixedLengthReader
Methods
ReadBase64<T>(string, FixedLengthReaderOptions?)
Reads fixed-length records from a base64-encoded string and returns a list of mapped objects.
List<T> ReadBase64<T>(string base64, FixedLengthReaderOptions? options = null) where T : new()
Parameters
base64stringoptionsFixedLengthReaderOptions
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.
List<T> ReadBytes<T>(byte[] data, FixedLengthReaderOptions? options = null) where T : new()
Parameters
databyte[]optionsFixedLengthReaderOptions
Returns
- List<T>
Type Parameters
T
ReadStream<T>(Stream, FixedLengthReaderOptions?)
Reads fixed-length records from a stream and returns a list of mapped objects.
List<T> ReadStream<T>(Stream stream, FixedLengthReaderOptions? options = null) where T : new()
Parameters
streamStreamoptionsFixedLengthReaderOptions
Returns
- List<T>
Type Parameters
T
ReadString<T>(string, FixedLengthReaderOptions?)
Reads fixed-length records from a string and returns a list of mapped objects.
List<T> ReadString<T>(string content, FixedLengthReaderOptions? options = null) where T : new()
Parameters
contentstringoptionsFixedLengthReaderOptions
Returns
- List<T>
Type Parameters
T