mimekit-ts - v1.0.0
    Preparing search index...

    Class TextToText

    A text to text converter.

    Hierarchy (View Summary)

    Index
    detectEncodingFromByteOrderMark: boolean = false

    Gets or sets whether byte input encoding is detected from the byte order mark or determined by inputEncoding.

    header: string | null = null

    Gets or sets text prepended to the beginning of the output.

    The header must be set before conversion begins.

    footer: string | null = null

    Gets or sets text appended to the end of the output.

    The footer must be set before conversion begins.

    • get inputStreamBufferSize(): number

      Gets or sets the input stream buffer size.

      Returns number

      value is less than or equal to zero.

    • set inputStreamBufferSize(value: number): void

      Parameters

      • value: number

      Returns void

    • get outputStreamBufferSize(): number

      Gets or sets the output stream buffer size.

      Returns number

      value is less than or equal to zero.

    • set outputStreamBufferSize(value: number): void

      Parameters

      • value: number

      Returns void

    • Converts source text from the input format to the output format and writes the result.

      Parameters

      • source: string | Uint8Array<ArrayBufferLike> | Stream

        The source text, bytes, or stream.

      • writer: TextWriter

        The text writer.

      Returns void

      source or writer is null or undefined.

    • Converts source text from the input format to the output format and writes the result to a stream.

      Parameters

      • source: string | Uint8Array<ArrayBufferLike> | Stream

        The source text, bytes, or stream.

      • destination: Stream

        The destination stream.

      Returns void

      destination is null or undefined.

    • Converts text from the input format to the output format.

      Parameters

      • text: string | Uint8Array<ArrayBufferLike> | Stream

        The text, bytes, or stream to convert.

      Returns string

      The converted text.

      text is null or undefined.