FileType Methods

The FileType type exposes the following members.

Methods
  NameDescription
Public methodEquals(Object)
Determines whether the current FileType is the same as specified object.
(Overrides ObjectEquals(Object).)
Public methodEquals(FileType)
Determines whether the current FileType is the same as specified FileType object.
Public methodStatic memberFromExtension
Maps file extension to file type.
Public methodStatic memberFromFilePath
Extracts file extension and maps it to file type.
Public methodStatic memberFromMediaType
Maps file media type to file type e.g. 'application/pdf' will be mapped to PDF.
Public methodStatic memberFromStream(Stream)
Detects file type by reading the file signature.
Public methodStatic memberFromStream(Stream, ILogger)
Detects file type by reading the file signature.
Public methodStatic memberFromStream(Stream, String)
Detects file type by reading the file signature.
Public methodStatic memberFromStream(Stream, String, ILogger)
Detects file type by reading the file signature.
Public methodGetHashCode
Returns the hash code for the current FileType object.
(Overrides ObjectGetHashCode.)
Public methodStatic memberGetSupportedFileTypes
Retrieves supported file types
Public methodGetType (Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Overrides ObjectToString.)
See Also