Aspose::Email::Tools::FileFormatUtil Class Reference

Provides utility methods to detect file type. More...

Inherits Object.

Static Public Member Functions

static ASPOSE_EMAIL_SHARED_API System::SharedPtr< FileFormatInfoDetectFileFormat (System::SharedPtr< System::IO::Stream > stream)
 Detects and returns the information about a format of a file stored in a stream. More...
 
static ASPOSE_EMAIL_SHARED_API System::SharedPtr< FileFormatInfoDetectFileFormat (System::String filePath)
 Detects and returns the information about a format of a file. More...
 
static ASPOSE_EMAIL_SHARED_API bool IsMsgFormat (System::SharedPtr< System::IO::Stream > stream)
 

Friends

class Aspose::Email::Mapi::MapiMessage
 

Detailed Description

Provides utility methods to detect file type.

Member Function Documentation

◆ DetectFileFormat() [1/2]

static ASPOSE_EMAIL_SHARED_API System::SharedPtr<FileFormatInfo> Aspose::Email::Tools::FileFormatUtil::DetectFileFormat ( System::SharedPtr< System::IO::Stream >  stream)
static

Detects and returns the information about a format of a file stored in a stream.

Parameters
streamSource stream.
Returns
The result FileFormatInfo

◆ DetectFileFormat() [2/2]

static ASPOSE_EMAIL_SHARED_API System::SharedPtr<FileFormatInfo> Aspose::Email::Tools::FileFormatUtil::DetectFileFormat ( System::String  filePath)
static

Detects and returns the information about a format of a file.

Parameters
filePathPath to the source file.
Returns
The result FileFormatInfo

◆ IsMsgFormat()

static ASPOSE_EMAIL_SHARED_API bool Aspose::Email::Tools::FileFormatUtil::IsMsgFormat ( System::SharedPtr< System::IO::Stream >  stream)
static

Friends And Related Function Documentation

◆ Aspose::Email::Mapi::MapiMessage

friend class Aspose::Email::Mapi::MapiMessage
friend