IOService
Overview
IOService is a class in Aspose.3D FOSS for Typescript.
IOService.instance returns the singleton IOService instance.
This class provides 11 methods for working with IOService objects in Typescript programs.
Available methods include: createExporter, createImporter, detectFormat, getAllPlugins, getPluginForExtension, getPluginForFormat, instance, registerDetector, registerExporter, registerImporter, registerPlugin.
All public members are accessible to any Typescript application after installing the Aspose.3D FOSS for Typescript package.
Description
IOService is a class in the Aspose.3D FOSS library for TypeScript that exposes 11 methods and 0 properties for programmatic use.
Core capabilities include: Registers a custom exporter for later use; registers a custom importer for later use; registers a formatdetector to identify file formats. These operations enable developers to integrate ioservice functionality directly into TypeScript applications.
Methods
| Signature | Description |
|---|---|
instance() → IOService | Returns 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 | null | Detects the file format from a stream and optional filename |
createExporter(formatType: FileFormat) → Exporter | Creates an Exporter for the specified FileFormat |
createImporter(formatType: FileFormat) → Importer | Creates an Importer for the specified FileFormat |
getPluginForFormat(fileFormat: FileFormat) → Plugin | null | Returns the Plugin handling the given FileFormat, or null |
getPluginForExtension(extension: string) → Plugin | null | Returns the Plugin for a file extension, or null |
getAllPlugins() → Plugin[] | Returns the all plugins. |