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 the Text Plain format.
Reader Properties
There are no reader properties for Text Plain data.
Writer Properties
The Text Plain format accepts properties that provide instructions for writing output data.
Parameter | Type | Default | Description |
---|---|---|---|
|
|
|
Size of the writer buffer. |
|
|
|
When set to |
|
|
|
Encoding for the writer to use. |
Supported MIME Types
The Text Plain format supports the following MIME types.
MIME Type |
---|
|