クラス AbstractStreamCommand

java.lang.Object
com.streamConverter.command.AbstractStreamCommand
すべての実装されたインタフェース:
IStreamCommand
直系の既知のサブクラス:
ConsumerCommand, convert, ConvertCommand, CsvNavigateCommand, JsonNavigateCommand, SampleStreamCommand, SendHttpCommand, XmlNavigateCommand

public abstract class AbstractStreamCommand extends Object implements IStreamCommand
Abstract class for stream commands.

This class provides a template for executing commands on input streams and writing the results to output streams.

  • コンストラクタの詳細

    • AbstractStreamCommand

      public AbstractStreamCommand()
      Default constructor.

      Initializes the command with default settings.

  • メソッドの詳細

    • execute

      public void execute(InputStream inputStream, OutputStream outputStream) throws IOException
      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.