---
schema_version: "1"
id: 081c5c038e7965543a936737d6c282277b73a2e8deb066a5511de2685adaf366
title: テキスト/プレーン形式
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/dataweave/2.8/dataweave-formats-text.md
canonical_url: https://docs.mulesoft.com/jp/dataweave/2.8/dataweave-formats-text
source_site: docs.mulesoft.com
content_type: documentation
content_hash: e5b1450dcf56fc921f22a3fccf19b85a6d4a41679a429f5183d5ddabfcd7d94e
description: MuleSoft Documentation Site
release: "2.8"
latest: false
---
# テキスト/プレーン形式

MIME タイプ: `text/plain`

ID: `text`

テキスト/プレーン形式では、テキストを文字列として表します。

DataWeave は、この形式を解析してエンコードし、RAM メモリに保存します。

## [](#examples)例

次の例は、DataWeave でテキスト/プレーンデータを表す方法を示しています。

### [](#入力)入力

プレーンテキストデータは、DataWeave ソースへの入力ペイロードとして機能します。

```txt
This is text plain
```

### [](#ソース)ソース

この DataWeave スクリプトは、テキスト/プレーン入力ペイロードを DataWeave (dw) 形式と MIME タイプに変換します。このスクリプトは、文字列を返します。

```dataweave
output application/dw
---
payload
```

### [](#出力)出力

DataWeave (dw) の出力は文字列であるため、引用符で囲まれています。

```dataweave
"This is text plain"
```

## [](#properties)Configuration のプロパティ

DataWeave では、この形式の以下の設定プロパティがサポートされています。

### [](#reader_properties)Reader のプロパティ

この形式のリーダープロパティはありません。

### [](#writer_properties)Writer のプロパティ

この形式は、出力データを書き込むための指示を提供するプロパティを受け入れます。

<table class="tableblock frame-all grid-all stretch">
<colgroup>
<col style="width: 16.6666%;">
<col style="width: 16.6666%;">
<col style="width: 16.6666%;">
<col style="width: 50.0002%;">
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">パラメーター</th>
<th class="tableblock halign-left valign-top">型</th>
<th class="tableblock halign-left valign-top">デフォルト</th>
<th class="tableblock halign-left valign-top">説明</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>bufferSize</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>Number</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>8192</code></p></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p>バッファライターのサイズ (バイト)。値は ​<code>8</code>​ よりも大きい必要があります。</p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>deferred</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>Boolean</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>false</code></p></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><code>true</code>​ に設定すると、出力をデータストリームとして生成し、スクリプトの実行は生成されたコンテンツがコンシュームされるまで延期されます。</p>
</div>
<div class="paragraph">
<p>有効な値は、​<code>true</code>​ または ​<code>false</code>​ です。</p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>encoding</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>String</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>null</code></p></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p>出力で使用するエンコード (UTF-8 など)。</p>
</div></div></td>
</tr>
</tbody>
</table>

## [](#mime_types)サポートされる MIME タイプ

この形式では、次の MIME タイプがサポートされます。

<table class="tableblock frame-all grid-all stretch">
<colgroup>
<col style="width: 100%;">
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">MIME タイプ</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>text/plain</code></p></td>
</tr>
</tbody>
</table>