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…).

Inheritance diagram

Parent Class:

Child Class:

Methods Signature

Detect(url, probeStream, flags)

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
  • url (maxon.Url) – maxon.Url to check.

  • 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