Class UrlDownloadFileNameEncoder
java.lang.Object
nablarch.fw.web.download.encorder.UrlDownloadFileNameEncoder
- All Implemented Interfaces:
DownloadFileNameEncoder
DownloadFileNameEncoderの実装クラス。
ダウンロードファイル名をURLエンコード方式でエンコードするクラス。
- Author:
- Masato Inoue
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionファイル名をURLエンコードする。
エンコードの際の文字コードには、charsetプロパティに設定された文字コードを使用する。setCharset(String charset) 文字コードを設定する。
-
Constructor Details
-
UrlDownloadFileNameEncoder
public UrlDownloadFileNameEncoder()
-
-
Method Details
-
setCharset
文字コードを設定する。- Parameters:
charset- 文字コード- Returns:
- このエンコーダー
-
encode
ファイル名をURLエンコードする。
エンコードの際の文字コードには、charsetプロパティに設定された文字コードを使用する。- Specified by:
encodein interfaceDownloadFileNameEncoder- Parameters:
fileName- ファイル名- Returns:
- エンコードされたファイル名
-