IOService
Overview
IOService is a class in Aspose.3D FOSS for Typescript.
IOService.instance returns the singleton IOService instance.
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 an array of all registered Plugins |