IOService
Przegląd
IOService jest klasą w Aspose.3D FOSS dla TypeScript.
IOService.instance zwraca jedyną instancję IOService.
Ta klasa deklaruje 11 metod dla obiektów IOService w programach TypeScript. Dostępne metody obejmują: createExporter, createImporter, detectFormat, getAllPlugins, getPluginForExtension, getPluginForFormat, instance, registerDetector, registerExporter, registerImporter, registerPlugin. Publiczne elementy są dostępne dla każdej aplikacji TypeScript po zainstalowaniu pakietu Aspose.3D FOSS dla TypeScript.
Metody
| Sygnatura | Opis |
|---|---|
instance() → IOService | Zwraca singletonową instancję IOService |
registerExporter(exporter: Exporter) | Rejestruje niestandardowy Exporter do późniejszego użycia |
registerImporter(importer: Importer) | Rejestruje niestandardowy Importer do późniejszego użycia |
registerDetector(detector: FormatDetector) | Rejestruje FormatDetector w celu identyfikacji formatów plików |
registerPlugin(plugin: Plugin) | Rejestruje wtyczkę, która może zapewniać możliwość importu/eksportu |
detectFormat(stream: any, fileName: string) → `FileFormat | null` |
createExporter(formatType: FileFormat) → Exporter | Tworzy Eksporter dla określonego FileFormat |
createImporter(formatType: FileFormat) → Importer | Tworzy Importer dla określonego FileFormat |
getPluginForFormat(fileFormat: FileFormat) → `Plugin | null` |
getPluginForExtension(extension: string) → `Plugin | null` |
getAllPlugins() → Plugin[] | Zwraca wszystkie wtyczki. |