Class DucerState<I,O>

java.lang.Object
net.nuke24.tscript34.p0010.ducer.DucerState<I,O>

public class DucerState<I,O> extends Object
The state of a stream processor, including queued-byt-not-yet-consumed input data, and output data. Input and output may be independently closed. Input may be closed before all data is consumed.
  • Field Details

  • Constructor Details

  • Method Details

    • process

      public DucerState<I,O> process(DucerChunk<I> input)
    • isDone

      public boolean isDone()
      If true, that means that this Danducer has finished doing all the work it will ever do. It will neither consume input nor generate output, so feel free to stop simulating it.
    • closeInput

      public DucerState<I,O> closeInput()
      For use by the internal processor. To indicate end of input data, call process() with chunk that isEnd. Return a new state identical to this one but whose input port is closed.
    • closeOutput

      public DucerState<I,O> closeOutput()
      For use by internal processor. Return a new state identical to this one but whose input port is closed.
    • close

      public DucerState<I,O> close()
      For use by internal processor. Return a new state identical to this one but whose input and output ports are closed, which implies that this Danducer 'isDone'