IOService

Overview

IOService is a class in Aspose.3D FOSS for TypeScript.

IOService.instance returns the singleton IOService instance.

This class declares 11 methods for IOService objects in TypeScript programs. Available methods include: createExporter, createImporter, detectFormat, getAllPlugins, getPluginForExtension, getPluginForFormat, instance, registerDetector, registerExporter, registerImporter, registerPlugin. Public members are accessible to any TypeScript application after installing the Aspose.3D FOSS for TypeScript package.

Methods

SignatureDescription
instance()IOServiceReturns the singleton IOService instance
registerExporter(exporter: Exporter)Registers a custom Exporter for later use
registerImporter(importer: Importer)Registers a custom Importer for later use
registerDetector(detector: FormatDetector)Registers a FormatDetector to identify file formats
registerPlugin(plugin: Plugin)Registers a Plugin that may provide import/export capabilities
detectFormat(stream: any, fileName: string)FileFormat | nullDetects the file format from a stream and optional filename
createExporter(formatType: FileFormat)ExporterCreates an Exporter for the specified FileFormat
createImporter(formatType: FileFormat)ImporterCreates an Importer for the specified FileFormat
getPluginForFormat(fileFormat: FileFormat)Plugin | nullReturns the Plugin handling the given FileFormat, or null
getPluginForExtension(extension: string)Plugin | nullReturns the Plugin for a file extension, or null
getAllPlugins()Plugin[]Returns the all plugins.

See Also

 English