---
schema_version: "1"
id: be25cd60cac75db9c9e454e576a3d6345db2f6c31d2e638d3068c74ed75a7b8b
title: テキスト/プレーン形式
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/dataweave/2.3/dataweave-formats-text.md
canonical_url: https://docs.mulesoft.com/jp/dataweave/2.3/dataweave-formats-text
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 9decf22dd18738614eaedca2275332b0be4c6340d8bc03e89ca196f7f8a98d18
description: MuleSoft Documentation Site
release: "2.3"
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-のプロパティ)Reader のプロパティ

テキスト/プレーンデータのリーダープロパティはありません。

### [](#writer-のプロパティ)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>ライターバッファのサイズ。</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>​ に設定すると、DataWeave は出力をデータストリームとして生成し、スクリプトの実行はそれがコンシュームされるまで延期されます。
  有効な値は、​<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>使用するライターのエンコード。</p>
</div></div></td>
</tr>
</tbody>
</table>

## [](#mime_type)サポートされる 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>