Class SingleResult

java.lang.Object
jp.cssj.cti2.results.SingleResult
All Implemented Interfaces:
Results

public class SingleResult extends Object implements Results
A Results implementation that outputs a single result.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected net.zamasoft.zstream.io.FragmentedOutput
    The data builder object that receives output.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Outputs data to a file.
    Outputs data to an OutputStream.
    SingleResult(net.zamasoft.zstream.io.FragmentedOutput builder)
    Outputs to a single data builder object.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    end()
    Completes the sequence of data outputs.
    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

    • builder

      protected net.zamasoft.zstream.io.FragmentedOutput builder
      The data builder object that receives output.
  • Constructor Details

    • SingleResult

      public SingleResult(net.zamasoft.zstream.io.FragmentedOutput builder)
      Outputs to a single data builder object.
      Parameters:
      builder -
    • SingleResult

      public SingleResult(OutputStream out)
      Outputs data to an OutputStream.
      Parameters:
      out -
    • SingleResult

      public SingleResult(File file)
      Outputs data to a file.
      Parameters:
      file -
  • 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)
      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.
    • 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