Show / Hide Table of Contents

    Class CsvSyncInput

    Helpers to create inputs that describe CSV data streams synchronously.

    Inheritance
    Object
    CsvSyncInput
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: Cursively
    Assembly: Cursively.dll
    Syntax
    public static class CsvSyncInput

    Methods

    | Improve this Doc View Source

    ForMemory(ReadOnlyMemory<Byte>)

    Creates an input that can describe the contents of a given ReadOnlyMemory<T> of bytes to an instance of CsvReaderVisitorBase, synchronously.

    Declaration
    public static CsvReadOnlyMemoryInput ForMemory(ReadOnlyMemory<byte> memory)
    Parameters
    Type Name Description
    ReadOnlyMemory<Byte> memory

    The ReadOnlyMemory<T> of bytes that contains the CSV data.

    Returns
    Type Description
    CsvReadOnlyMemoryInput

    An instance of CsvReadOnlyMemoryInput wrapping memory.

    | Improve this Doc View Source

    ForMemoryMappedFile(String)

    Creates an input that can describe the contents of a given file to an instance of CsvReaderVisitorBase, synchronously using memory-mapping.

    Declaration
    public static CsvMemoryMappedFileInput ForMemoryMappedFile(string csvFilePath)
    Parameters
    Type Name Description
    String csvFilePath

    The path to the file that contains the CSV data.

    The only validation that Cursively does is IsNullOrWhiteSpace(String).

    Returns
    Type Description
    CsvMemoryMappedFileInput

    An instance of CsvMemoryMappedFileInput wrapping csvFilePath.

    Exceptions
    Type Condition
    ArgumentNullException

    Thrown when csvFilePath is null.

    ArgumentException

    Thrown when csvFilePath is non-null, but is either empty or whitespace-only.

    | Improve this Doc View Source

    ForSequence(ReadOnlySequence<Byte>)

    Creates an input that can describe the contents of a given ReadOnlySequence<T> of bytes to an instance of CsvReaderVisitorBase, synchronously.

    Declaration
    public static CsvReadOnlySequenceInput ForSequence(ReadOnlySequence<byte> sequence)
    Parameters
    Type Name Description
    ReadOnlySequence<Byte> sequence

    The ReadOnlySequence<T> of bytes that contains the CSV data.

    Returns
    Type Description
    CsvReadOnlySequenceInput

    An instance of CsvReadOnlySequenceInput wrapping sequence.

    | Improve this Doc View Source

    ForStream(Stream)

    Creates an input that can describe the contents of a given Stream to an instance of CsvReaderVisitorBase, synchronously.

    Declaration
    public static CsvSyncStreamInput ForStream(Stream csvStream)
    Parameters
    Type Name Description
    Stream csvStream

    The Stream that contains the CSV data.

    Returns
    Type Description
    CsvSyncStreamInput

    An instance of CsvSyncStreamInput wrapping csvStream.

    Exceptions
    Type Condition
    ArgumentException

    Thrown when csvStream is non-null and its CanRead is false.

    • Improve this Doc
    • View Source
    Back to top Generated by DocFX