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
ArchiveFileExtensions
Provides a set of file extensions commonly associated with archive files.
public static readonly HashSet<string> ArchiveFileExtensions
Field Value
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
BinaryDocumentContentTypes
Provides a set of MIME content types that are recognized as binary document formats.
public static readonly HashSet<string> BinaryDocumentContentTypes
Field Value
BinaryDocumentFileExtensions
Provides a set of file extensions that are recognized as binary document formats.
public static readonly HashSet<string> BinaryDocumentFileExtensions
Field Value
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
FileExtensionMap
Provides a read-only mapping of file extensions to their canonical names.
public static readonly IReadOnlyDictionary<string, string> FileExtensionMap
Field Value
Map
Provides a mapping between MIME types and their corresponding file format extensions.
public static readonly IReadOnlyDictionary<string, string> Map
Field Value
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
MediaFileExtensions
Provides a set of file extensions recognized as media files by the application.
public static readonly HashSet<string> MediaFileExtensions
Field Value
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
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
MicrosoftOfficeLegacyFileExtensions
Provides a set of file extensions associated with legacy Microsoft Office document formats.
public static readonly HashSet<string> MicrosoftOfficeLegacyFileExtensions
Field Value
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
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
TextContentTypes
Provides a set of MIME types that are commonly associated with text-based content.
public static readonly HashSet<string> TextContentTypes
Field Value
TextFileExtensions
Provides a set of file extensions commonly associated with plain text files.
public static readonly HashSet<string> TextFileExtensions