ColladaFormatDetector

ColladaFormatDetector

Overview

ColladaFormatDetector identifies COLLADA (.dae) content by inspecting the opening bytes or file extension of an input stream. It is used internally by Scene.open() to select the correct importer automatically when no explicit format is specified by the caller. The detector examines COLLADA (.dae)-specific file signatures and returns the ColladaFormat descriptor on a confirmed match, or yields to other detectors when the content does not conform to the expected COLLADA (.dae) structure.

Methods

SignatureDescription
constructor()Creates a new instance of the Collada format detector
detect(stream: any, fileName: string)FileFormat | nullExamines a stream and filename to identify a Collada file, returning a FileFormat or null

See Also