FieldedText TypeScript Library
    Preparing search index...

    Writer for fielded text streams. Coordinates all writing logic.

    Hierarchy (View Summary)

    Index
    _recordCount: number = 0
    _tableCount: number = 0
    onFieldHeadingReadReady?: (args: FtFieldHeadingReadyEventArgs) => void
    onFieldHeadingWriteReady?: (args: FtFieldHeadingReadyEventArgs) => void
    onFieldValueReadReady?: (args: FtFieldValueReadyEventArgs) => void
    onFieldValueWriteReady?: (args: FtFieldValueReadyEventArgs) => void
    onHeadingLineFinished?: (args: FtHeadingLineFinishedEventArgs) => void
    onHeadingLineStarted?: (args: FtHeadingLineStartedEventArgs) => void
    onRecordFinished?: (args: FtRecordFinishedEventArgs) => void
    onRecordStarted?: (args: FtRecordStartedEventArgs) => void
    onSequenceRedirected?: (args: FtSequenceRedirectedEventArgs) => void
    CarriageReturnChar: "\r" = CharReader.CarriageReturnChar
    CarriageReturnLineFeedString: "\r\n" = CharReader.CarriageReturnLineFeedString
    LineFeedChar: "\n" = CharReader.LineFeedChar
    PrefixSpaceChar: " " = ' '
    Signature: "|!Fielded Text^|" = CharReader.Signature
    VersionLabel: "Version" = 'Version'
    VersionMajor: 1
    VersionMinor: 1
    VersionSeparator: "." = '.'
    • Set a boolean field.

      Parameters

      • idx: number

        The 0-based index of the field to set.

      • value: boolean | null

        The value to set for the field. Can be null to set the field to null.

      Returns void

    • Set a DateTime field's value.

      Parameters

      • idx: number

        The 0-based index of the field to set.

      • value: Date | null

        The value to set for the field. Can be null to set the field to null.

      Returns void

    • Set a decimal field.

      Parameters

      • idx: number

        The 0-based index of the field to set.

      • value: number | null

        The value to set for the field. Can be null to set the field to null.

      Returns void

    • Set a field value by index. Accepts null to set the field to null.

      Parameters

      • idx: number

        The 0-based index of the field to set.

      • value: FtField.Value | null

        The value to set for the field. Can be null to set the field to null.

      Returns void

      FtTypeError if the value being set is not of the field's expected type.

    • Set a field value by name.

      Parameters

      • name: string

        The name of the field to set.

      • value: FtField.Value | null

        The value to set for the field. Can be null to set the field to null.

      Returns void

      FtTypeError if the value being set is not of the field's expected type.

    • Set a float field.

      Parameters

      • idx: number

        The 0-based index of the field to set.

      • value: number | null

        The value to set for the field. Can be null to set the field to null.

      Returns void

    • Set an integer field.

      Parameters

      • idx: number

        The 0-based index of the field to set.

      • value: number | bigint | null

        The value to set for the field. Can be null to set the field to null.

      Returns void

    • Set a string field.

      Parameters

      • idx: number

        The 0-based index of the field to set.

      • value: string | null

        The value to set for the field. Can be null to set the field to null.

      Returns void

    • Set multiple field values.

      Parameters

      • values: (FtField.Value | null)[]

        An array of values to set for the fields. The length of the array must not exceed the number of fields. Array elements can be null to set the corresponding field to null.

      Returns void

      FtTypeError if any of the values being set is not of the corresponding field's expected type.