Sign in Join
FPDoc Onlineexperiment

TFPMimeTypes class

In unit FpMimeTypes

Class to manage list of mime type mappings.

Declaration

pascal
TFPMimeTypes = class(TComponent)

Inheritance

  1. TFPMimeTypes
  2. TComponent
  3. TPersistent
  4. TObject

Description

TFPMimeTypes manages a list of MIME types.

The list of types can be initialized with the OS list of known MIME types through the LoadKnownTypes method, or a file in the standard mime.types format can be loaded through the LoadFromFile method.

The associated mime type of a file extension can be retrieved with GetMimeType.

See also

Methods

FindMimeByTypeprotected
FindMimeByExtprotected
DefaultMimeTypesLocationprotected
CreatepublicCreate a new instance of the TFPMimeTypes class.
DestroypublicRemove instance from memory.
ClearpublicClear the list of known MIME types.
LoadKnownTypespublicQueries the OS for a list of known MIME types.
GetNextExtensionpublicExtract an extension from an extension list as returned by GetMimeExtensions.
LoadFromStreampublicLoad mime types from a stream in mime.types file format.
LoadFromFilepublicLoad mime types from a file in mime.types file format.
AddTypepublicAdd a MIME type to the list.
GetMimeExtensionspublicGet the extensions associated with a MIME type.
GetMimeTypepublicGet MIME type of an extension.
GetKnownMimeTypespublicGet a list of all known MIME types.
GetKnownExtensionspublicGet a lis of all known extensions.

Inherited

From TComponent (74)

_AddRef _Release BeforeDestruction CanObserve ChangeName ComObject ComponentCount ComponentIndex Components ComponentState ComponentStyle DefineProperties DesignInfo DestroyComponents Destroying ExecuteAction FindComponent FreeNotification FreeOnRelease GetChildOwner GetChildParent GetChildren GetDeltaStreams GetEnumerator GetIDsOfNames GetNamePath GetObservers GetOwner GetParentComponent GetTypeInfo GetTypeInfoCount HasParent iicrGetComponent InsertComponent Invoke IsImplementorOf Loaded Loading Name Notification ObserverAdded Observers OnGetDeltaStreams Owner PaletteCreated QueryInterface ReadDeltaState ReadDeltaStream ReadState ReferenceInterface RemoveComponent RemoveFreeNotification RemoveFreeNotifications SafeCallException SetAncestor SetChildOrder SetDesigning SetDesignInstance SetInline SetName SetParentComponent SetSubComponent Tag ToString TToStringNameMode UpdateAction Updated UpdateRegistry Updating ValidateContainer ValidateInsert ValidateRename VCLComObject WriteState

From TPersistent (5)

Assign AssignTo FPOAttachObserver FPODetachObserver FPONotifyObservers

From TObject (37)

AfterConstruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName StringMessageTable SystemHasExtendedRTTI UnitName

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.