host=localhost
port=1234
Text Java Properties Format
MIME Type: text/x-java-properties
ID: properties
The Text Java Properties format parses any Java properties file. This format represents simple key-value pairs. DataWeave represents these pairs as an object with string values.
Example: Represent a properties File in the DataWeave Format (dw)
This example shows how DataWeave represents a properties file.
Input
The following text/x-java-properties
data is from a properties file. The file contains key-value pairs that provide host and port values. This content serves as the input payload to the DataWeaave script.
Configuration Properties
DataWeave supports the following configuration properties for the Text Java Properties format.
Writer Properties
The Text Java Properties 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. |