maxon.FileFormatHandlerInterface¶
Description¶
FileFormatHandlerInterface implements a handler for a specific FileFormat.
Note
Two different implementations could offer different loaders for one and the same FileFormat.
FileFormat::Zip implements one handler for Directory Browsing
(
maxon.IoBrowseRef) and one for maxon.ReadArchiveRef.Methods Signature¶
CreateHandler(HANDLER, url) |
Creates an maxon.ObjectRef which handles the given url with the specific interface. |
GetDependends(*args) |
Returns the dependencies of this
maxon.FileFormatHandler. |
GetFileFormat() |
Returns the maxon.FileFormat which is handled by this maxon.FileFormatHandler. |
GetHandlerType() |
Returns the maxon.DataType of the reference class of the handler returned by FileFormatHandlerInterface.CreateHandler(). |
Methods Definition¶
-
FileFormatHandlerInterface.CreateHandler(HANDLER, url)¶ Creates an
maxon.ObjectRefwhich handles the given url with the specific interface.Note
FileFormat::Zip implements one handler for Directory Browsing “
maxon.IoBrowseRef” and one for workign with archives “maxon.ReadArchiveRef”.Parameters: - HANDLER (Union[
maxon.UrlInterface,maxon.Data, type]) – Reference class to be expected with the result of CreateHandler. - url (
maxon.Url) –maxon.Urlto be used with this handler.
Returns: Reference class to be expected with the result of CreateHandler.
Return type: same as HANDLER
- HANDLER (Union[
-
FileFormatHandlerInterface.GetDependends(*args)¶ - Returns the dependencies of this
maxon.FileFormatHandler.This allows to give an priority order for a implementation.Warning
This function should not be called except from
FileFormatDetectionInterface.DetectAll().Returns: Defines the priority order of file formats. The lower the value the later it will be called. Return type: maxon.FILEFORMAT_PRIORITY
-
FileFormatHandlerInterface.GetFileFormat()¶ Returns the
maxon.FileFormatwhich is handled by thismaxon.FileFormatHandler.Returns: The file format. Return type: maxon.FileFormat
-
FileFormatHandlerInterface.GetHandlerType()¶ Returns the
maxon.DataTypeof the reference class of the handler returned byFileFormatHandlerInterface.CreateHandler().Returns: The data type of the reference class. Return type: maxon.DataType