Table of Contents

Class PlainTextExtractor

Namespace
Qavren.Edge.Ingestion
Assembly
Qavren.Edge.Ingestion.dll

Spec 7.2's plain-text extractor. Blocks are Paragraphs split on blank lines; encoding resolves BOM, then a strict UTF-8 probe, then Latin-1, with no third-party dependency.

public sealed class PlainTextExtractor : IDocumentExtractor
Inheritance
PlainTextExtractor
Implements
Inherited Members

Constructors

PlainTextExtractor()
PlainTextExtractor(PlainTextExtractorOptions)

Properties

Extensions

Lower-case, dotted.

Id

Stable; feeds the recipe hash.

MediaTypes

The media types this extractor claims.

Version

Bump when output changes for identical input.

Methods

CanExtract(DocumentSourceItem)

A last word over the registry's media-type and extension match.

ExtractAsync(DocumentSourceItem, ExtractionContext, CancellationToken)

Extracts one document. The stream is opened here, not by the caller, and the returned document's block offsets index Text.