Reliability of Aspose.Cells FileFormat Detection Methods

Thanks for your answer, it works
do you know if the following method is reliable enough?

AsposeFileType.FromId(com.aspose.cells.FileFormatUtil.detectFileFormat(inputFile).getFileFormatType())

if yes what should i prefer?

@yecht
The FileFormatUtil.detectFileFormat method is reliable and trustworthy for detecting file formats. Please refer to the following document for file formats that support detection.