Class FileInspection
- Namespace
- LMKit.Inspection
- Assembly
- LM-Kit.NET.dll
The universal result of inspecting a file's metadata: one envelope for ANY format.
Three layers, so the shape never changes as formats are added:
- Identity - always populated: Format, MimeType, Family, ByteSize.
- Facets - strongly typed per-domain summaries (Image / Video / Audio / Document), null when not applicable. These are what a UI binds to.
- Properties - the open bag carrying every extracted field, including ones no facet maps yet. New formats and new tags only ever ADD entries here.
Inspection never throws on content: an unrecognized format still yields the identity
layer with Format "unknown", and a malformed file yields whatever could
be read plus Warnings.
public sealed class FileInspection
- Inheritance
-
FileInspection
- Inherited Members
Properties
- Audio
Audio summary; null unless the file carries a primary audio stream (audio files; also populated alongside Video is NOT done - a video's audio track is summarized inside the video facet).
- ByteSize
Total size of the inspected content in bytes.
- Family
The broad family the format belongs to.
- Format
Stable lower-case format slug (
"jpeg","mp4","docx","unknown", ...). The slug identifies the CONTAINER, not the codec.
- FromExtensionOnly
True when the format was recognized from the FILE NAME only (no magic bytes matched) - a lower-confidence identification.
- MimeType
The format's canonical MIME type (
"application/octet-stream"when unknown).
- Properties
Every extracted metadata field, in source order. See MetadataProperty.
- Warnings
Non-fatal anomalies met while reading (truncated structures, unparseable tags).
Methods
- Add(MetadataProperty)
Adds a property when it is non-null (the typed factories return null for empty text), keeping extractor code free of null checks.