ConverterRegistry Type
A registry of format readers and writers, keyed by media type. This is the entry point for "A → unified → B": register one `IDocumentReader` and one `IDocumentWriter` per format, then call `Convert`.
Constructors
| Constructor |
Description
|
|
|
Instance members
| Instance member |
Description
|
Full Usage:
this.Convert
Parameters:
string
input : Stream
targetMediaType : string
output : Stream
ctx : ConversionContext
|
Convert in one step: read `sourceMediaType` from `input`, then write `targetMediaType` to `output`. This is the canonical A → unified → B path.
|
Full Usage:
this.Read
Parameters:
string
input : Stream
ctx : ConversionContext
Returns: Document
|
Parse a source stream of the given media type into the unified model.
|
Full Usage:
this.ReadableTypes
Returns: string list
|
Media types that can be read from.
|
|
Register a reader for all of its declared media types.
|
|
Register a writer for all of its declared media types.
|
|
|
|
|
Full Usage:
this.WritableTypes
Returns: string list
|
Media types that can be written to.
|
Full Usage:
this.Write
Parameters:
string
doc : Document
output : Stream
ctx : ConversionContext
|
Serialize the unified model to a target media type.
|
Nao