This is text plain
txt
Text Plain Format
MIME type: text/plain
ID: text
The Text Plain format represents text as a string.
Note that DataWeave parses, encodes, and stores this format into RAM memory.
Example
This example shows how DataWeave represents Text Plain data.
Input
The Plain Text data serves as the input payload to the DataWeave source.
Source
The DataWeave script transforms the Text PLain input payload to the DataWeave (dw) format and MIME type. It returns a string.
output application/dw
---
payload
dataweave
Output
Because the DataWeave (dw) output is a string, it is wrapped in quotation marks.
"This is text plain"
dataweave
Configuration Properties
DataWeave supports the following configuration properties for this format.
Reader Properties
There are no reader properties for this format.
Writer Properties
This format accepts properties that provide instructions for writing output data.
Parameter | Type | Default | Description |
---|---|---|---|
|
|
|
Size of the buffer writer, in bytes. The value must be greater than |
|
|
|
Generates the output as a data stream when set to Valid values are |
|
|
|
The encoding to use for the output, such as UTF-8. |
Supported MIME Types
This format supports the following MIME types.
MIME Type |
---|
|