maxon.FileFormatInterface¶
Description¶
maxon.FileFormatInterface allows to implement and register file formats with its detection algorithm.The
maxon.FileFormats registry allows to register any format
(e.g. FileFormats.Browsable, FileFormats.ImageJpg…).Methods Signature¶
|
Checks if the given URL or stream supports this file format.
|
Methods Definition¶
-
FileFormatInterface.Detect(url, probeStream, flags)¶ - Checks if the given URL or stream supports this file format.
- Parameters
probeStream (Optional[
maxon.InputStreamRef]) – Optional stream to read file content from.flags (
maxon.FILEFORMATDETECTIONFLAGS) – Detection flags.
- Returns
True if the URL or stream fits this file format implementation.
- Return type
bool