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

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

Inherits Object.

Public Member Functions

 FileFormatUtil ()=delete
 

Static Public Member Functions

static 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 System::SharedPtr< FileFormatInfoDetectFileFormat (System::String filePath)
 Detects and returns the information about a format of a file. More...
 
static FileFormatType CheckTextFormats (System::SharedPtr< System::IO::Stream > stream)
 
static bool IsMsgFormat (System::SharedPtr< System::IO::Stream > stream)
 

Friends

class Aspose::Email::Mapi::MapiMessage
 
class Aspose::Email::Storage::Olm::MapiMessageIterator
 
class Aspose::Email::Storage::Olm::OlmStorage
 

Detailed Description

Provides utility methods to detect file type.

Constructor & Destructor Documentation

◆ FileFormatUtil()

Aspose::Email::Tools::FileFormatUtil::FileFormatUtil ( )
delete

Member Function Documentation

◆ CheckTextFormats()

static FileFormatType Aspose::Email::Tools::FileFormatUtil::CheckTextFormats ( System::SharedPtr< System::IO::Stream >  stream)
static

◆ DetectFileFormat() [1/2]

static 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 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 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

◆ Aspose::Email::Storage::Olm::MapiMessageIterator

friend class Aspose::Email::Storage::Olm::MapiMessageIterator
friend

◆ Aspose::Email::Storage::Olm::OlmStorage