クラス AbstractStreamCommand
java.lang.Object
com.streamConverter.command.AbstractStreamCommand
- すべての実装されたインタフェース:
IStreamCommand
- 直系の既知のサブクラス:
ConsumerCommand
,convert
,ConvertCommand
,CsvNavigateCommand
,JsonNavigateCommand
,SampleStreamCommand
,SendHttpCommand
,XmlNavigateCommand
Abstract class for stream commands.
This class provides a template for executing commands on input streams and writing the results to output streams.
-
コンストラクタの概要
コンストラクタ -
メソッドの概要
修飾子とタイプメソッド説明protected abstract void
_execute
(InputStream inputStream, OutputStream outputStream) Abstract method to be implemented by subclasses for executing the command.void
execute
(InputStream inputStream, OutputStream outputStream) Executes the command on the provided input stream and writes the result to the output stream.
-
コンストラクタの詳細
-
AbstractStreamCommand
public AbstractStreamCommand()Default constructor.Initializes the command with default settings.
-
-
メソッドの詳細
-
execute
Executes the command on the provided input stream and writes the result to the output stream.- 定義:
execute
インタフェース内IStreamCommand
- パラメータ:
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.
-
_execute
protected abstract void _execute(InputStream inputStream, OutputStream outputStream) throws IOException Abstract method to be implemented by subclasses for executing the command.- パラメータ:
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.
-