type DataFormat = { binaryFormat?: Boolean, defaultCharset?: String,
fileExtensions?: Array<String>,
acceptedMimeTypes: Array<MimeType>,
reader: (content: Binary,
charset: String,
settings: ReaderSettings) -> Any,
writer: (value: Any,
settings: WriterSettings) -> Binary }
DataFormat Types (dw::extension::DataFormat)
The DataFormat module provides resources for registering a new data format for the DataWeave language. For an example, see Custom Data Formats Example.
Type | Definition | Description |
---|---|---|
DataFormat |
Represents the DataFormat definition.
|
|
EmptySettings |
|
Represents a configuration with no settings. |
EncodingSettings |
|
Represents encoding settings:
|
MimeType |
|
Represents a MIME type, such as Introduced in DataWeave version 2.2.0. |
Settings |
|
Reader or writer configuration settings. Introduced in DataWeave version 2.2.0. |