Table of Contents

Class ContentTypeMappings

Namespace
FoundationaLLM.Common.Constants
Assembly
FoundationaLLM.Common.dll

Provides mappings from MIME content types to file type identifiers.

public static class ContentTypeMappings
Inheritance
ContentTypeMappings
Inherited Members

Fields

ArchiveContentTypes

Provides a set of MIME content types that are commonly used for archive files, such as ZIP and TAR formats.

public static readonly HashSet<string> ArchiveContentTypes

Field Value

HashSet<string>

ArchiveFileExtensions

Provides a set of file extensions commonly associated with archive files.

public static readonly HashSet<string> ArchiveFileExtensions

Field Value

HashSet<string>

ArchiveMap

Provides a read-only mapping of archive MIME types to their corresponding file format names.

public static readonly IReadOnlyDictionary<string, string> ArchiveMap

Field Value

IReadOnlyDictionary<string, string>

BinaryDocumentContentTypes

Provides a set of MIME content types that are recognized as binary document formats.

public static readonly HashSet<string> BinaryDocumentContentTypes

Field Value

HashSet<string>

BinaryDocumentFileExtensions

Provides a set of file extensions that are recognized as binary document formats.

public static readonly HashSet<string> BinaryDocumentFileExtensions

Field Value

HashSet<string>

BinaryDocumentMap

Provides a read-only mapping of MIME types for common binary document formats to their corresponding file type identifiers.

public static readonly IReadOnlyDictionary<string, string> BinaryDocumentMap

Field Value

IReadOnlyDictionary<string, string>

FileExtensionMap

Provides a read-only mapping of file extensions to their canonical names.

public static readonly IReadOnlyDictionary<string, string> FileExtensionMap

Field Value

IReadOnlyDictionary<string, string>

Map

Provides a mapping between MIME types and their corresponding file format extensions.

public static readonly IReadOnlyDictionary<string, string> Map

Field Value

IReadOnlyDictionary<string, string>

Remarks

This dictionary contains a predefined set of MIME types as keys and their associated file format extensions as values. It is useful for converting MIME types to human-readable file format identifiers. The dictionary is read-only and cannot be modified at runtime.

MediaContentTypes

Provides a set of MIME types that are commonly associated with media content, such as images and audio files.

public static readonly HashSet<string> MediaContentTypes

Field Value

HashSet<string>

MediaFileExtensions

Provides a set of file extensions recognized as media files by the application.

public static readonly HashSet<string> MediaFileExtensions

Field Value

HashSet<string>

MediaMap

Provides a read-only mapping of media MIME types to their corresponding file format names.

public static readonly IReadOnlyDictionary<string, string> MediaMap

Field Value

IReadOnlyDictionary<string, string>

MicrosoftOfficeLegacyContentTypes

Provides a set of MIME content types associated with legacy Microsoft Office file formats, including Word, PowerPoint, and Excel documents.

public static readonly HashSet<string> MicrosoftOfficeLegacyContentTypes

Field Value

HashSet<string>

MicrosoftOfficeLegacyFileExtensions

Provides a set of file extensions associated with legacy Microsoft Office document formats.

public static readonly HashSet<string> MicrosoftOfficeLegacyFileExtensions

Field Value

HashSet<string>

MicrosoftOfficeLegacyMap

Provides a mapping of legacy Microsoft Office MIME types to their corresponding file format abbreviations.

public static readonly IReadOnlyDictionary<string, string> MicrosoftOfficeLegacyMap

Field Value

IReadOnlyDictionary<string, string>

PlainTextMap

Provides a read-only mapping of MIME types to their corresponding plain text or data file format identifiers.

public static readonly IReadOnlyDictionary<string, string> PlainTextMap

Field Value

IReadOnlyDictionary<string, string>

TextContentTypes

Provides a set of MIME types that are commonly associated with text-based content.

public static readonly HashSet<string> TextContentTypes

Field Value

HashSet<string>

TextFileExtensions

Provides a set of file extensions commonly associated with plain text files.

public static readonly HashSet<string> TextFileExtensions

Field Value

HashSet<string>