Klasse PipeProcessor

java.lang.Object
de.srsoftware.document.processor.PipeProcessor
Alle implementierten Schnittstellen:
de.srsoftware.document.api.Document
Bekannte direkte Unterklassen:
FigletDoc

public abstract class PipeProcessor extends Object implements de.srsoftware.document.api.Document
Document renderer that pipes content of a precursor through a program and returns the program`s output
  • Konstruktordetails

    • PipeProcessor

      public PipeProcessor()
      create a new instance
  • Methodendetails

    • command

      protected abstract List<String> command(Map<String,Object> data)
      provides the command used by the render process
      Parameter:
      data - context for the command creation
      Gibt zurück:
      a list of strings composing the render command
    • precursor

      protected abstract de.srsoftware.document.api.Document precursor()
      the precursor for this PipeProcessor document
      Gibt zurück:
      the precursor document
    • render

      public de.srsoftware.document.api.RenderResult render(Map<String,Object> data)
      Angegeben von:
      render in Schnittstelle de.srsoftware.document.api.Document
    • timeout

      public Duration timeout()
      timeout for the render process
      Gibt zurück:
      defaults to a duration of 10 seconds