クラス convert
java.lang.Object
com.streamConverter.command.AbstractStreamCommand
com.streamConverter.command.impl.charaCode.convert
- すべての実装されたインタフェース:
IStreamCommand
Converts the character encoding of a stream from one encoding to another.
This class extends the AbstractStreamCommand and implements the conversion of character encodings.
-
コンストラクタの概要
コンストラクタ -
メソッドの概要
修飾子とタイプメソッド説明void
_execute
(InputStream inputStream, OutputStream outputStream) Executes the character encoding conversion on the provided input stream and writes the result to the output stream.クラスから継承されたメソッド com.streamConverter.command.AbstractStreamCommand
execute
-
コンストラクタの詳細
-
convert
Constructor to initialize the character encodings for conversion.- パラメータ:
from
- The source character encoding.to
- The target character encoding.- 例外:
IllegalArgumentException
- if the specified character encodings are not supported.
-
-
メソッドの詳細
-
_execute
Executes the character encoding conversion on the provided input stream and writes the result to the output stream.- 定義:
_execute
クラス内AbstractStreamCommand
- パラメータ:
inputStream
- The input stream to read data from.outputStream
- The output stream to write data to.- 例外:
IOException
- If an I/O error occurs during the execution of the command.
-