Class ServletResponseResults

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

public class ServletResponseResults extends Object implements Results
Sends the built data as a servlet response.
  • Field Summary

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

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

    Modifier and Type
    Method
    Description
    void
    end()
    Completes the sequence of data outputs.
    protected void
     
    boolean
    Returns true if the next result can be output.
    net.zamasoft.zstream.io.FragmentedOutput
    nextBuilder(net.zamasoft.zstream.resolver.SourceMetadata metaSource)
    Returns a builder for constructing the next processing result.

    Methods inherited from class java.lang.Object

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

    • response

      protected final javax.servlet.ServletResponse response
    • builder

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

    • ServletResponseResults

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

    • hasNext

      public boolean hasNext()
      Description copied from interface: Results
      Returns true if the next result can be output.
      Specified by:
      hasNext in interface Results
      Returns:
      true if the next result can be output; false otherwise.
    • nextBuilder

      public net.zamasoft.zstream.io.FragmentedOutput nextBuilder(net.zamasoft.zstream.resolver.SourceMetadata metaSource) throws IOException
      Description copied from interface: Results
      Returns a builder for constructing the next processing result.
      Specified by:
      nextBuilder in interface Results
      Returns:
      The data builder object.
      Throws:
      IOException
    • finish

      protected void finish()
    • end

      public void end()
      Description copied from interface: Results
      Completes the sequence of data outputs.

      For a normal conversion, this is called once after all result builders are closed. For continuous conversion, it is not called for individual transcode calls, but is called once at the final join.

      Specified by:
      end in interface Results