クラス SampleStreamCommand
java.lang.Object
com.streamConverter.command.AbstractStreamCommand
com.streamConverter.command.impl.SampleStreamCommand
- すべての実装されたインタフェース:
IStreamCommand
SampleStreamCommand is a concrete implementation of AbstractStreamCommand.
This command reads data from an input stream and writes it to an output stream.
-
コンストラクタの概要
コンストラクタコンストラクタ説明Default constructor that initializes the command with a default ID.Constructor that initializes the command with a specific ID. -
メソッドの概要
修飾子とタイプメソッド説明void
_execute
(InputStream inputStream, OutputStream outputStream) Executes the command on the provided input stream and writes the result to the output stream.toString()
クラスから継承されたメソッド com.streamConverter.command.AbstractStreamCommand
execute
-
コンストラクタの詳細
-
SampleStreamCommand
public SampleStreamCommand()Default constructor that initializes the command with a default ID. -
SampleStreamCommand
Constructor that initializes the command with a specific ID.- パラメータ:
arg
- The ID to be assigned to this command.
-
-
メソッドの詳細
-
_execute
Executes the command 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.
-
toString
-