FileReader::MatchFormat

FileReader::MatchFormat
virtual bool MatchFormat(File* file, UByte* header, UPInt headerSize) const;
Description

MatchFormat verifies the specified file to determine whether it is JPEG image file. 

MatchFormat detects whether the file data in the provided header, or beginning at the current location of File pointer, matches the JPEG image format.

Parameters
Parameters 
Description 
File* file 
Pointer to the File which is verified. 
UByte* header 
The header tag of the file. 
UPInt headerSize 
The size of the buffer which contains the image header data. 
Return Value

A Boolean value of true if the image file is of JPEG image format.