Class ServletResponseResults

java.lang.Object
jp.cssj.cti2.helpers.jakarta.ServletResponseResults
All Implemented Interfaces:
Results

public class ServletResponseResults extends Object implements Results
構築したデータをサーブレットのレスポンスとして送り出します。
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected net.zamasoft.zstream.io.util.OutputMeasurer
     
    protected final jakarta.servlet.ServletResponse
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    ServletResponseResults(jakarta.servlet.ServletResponse response)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    end()
    一連のデータ出力を完了します。
    protected void
     
    boolean
    次の結果を出力可能であればtrueを返します。
    net.zamasoft.zstream.io.FragmentedOutput
    nextBuilder(net.zamasoft.zstream.resolver.SourceMetadata metaSource)
    次の処理結果を構築するためのビルダを返します。

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • response

      protected final jakarta.servlet.ServletResponse response
    • builder

      protected net.zamasoft.zstream.io.util.OutputMeasurer builder
  • Constructor Details

    • ServletResponseResults

      public ServletResponseResults(jakarta.servlet.ServletResponse response)
  • Method Details

    • hasNext

      public boolean hasNext()
      Description copied from interface: Results
      次の結果を出力可能であればtrueを返します。
      Specified by:
      hasNext in interface Results
      Returns:
      次の結果を出力可能であればtrueそうでなければfalse。
    • nextBuilder

      public net.zamasoft.zstream.io.FragmentedOutput nextBuilder(net.zamasoft.zstream.resolver.SourceMetadata metaSource) throws IOException
      Description copied from interface: Results
      次の処理結果を構築するためのビルダを返します。
      Specified by:
      nextBuilder in interface Results
      Returns:
      データ構築オブジェクト。
      Throws:
      IOException
    • finish

      protected void finish()
    • end

      public void end()
      Description copied from interface: Results
      一連のデータ出力を完了します。

      通常の変換では全結果のビルダが閉じられた後に1回呼ばれます。連続変換では 個々のtranscodeでは呼ばれず、最終的なjoinで1回呼ばれます。

      Specified by:
      end in interface Results