ResourceGenerationStage

Pipeline stage responsible for generating output resources from the rendered content.

This stage takes the CharSequence output produced by the PostRenderingStage as input and produces a set of OutputResources as output.

Resources are generated by the PostRenderer, and also processes subdocuments to generate their own.

The resources generated by this stage include:

  • The main document content

  • Media resources (images, fonts, etc.)

  • Resources from subdocuments

Constructors

Link copied to clipboard
constructor(postRenderer: PostRenderer)

Properties

Link copied to clipboard

A hook function that is invoked after the stage completes processing.

Functions

Link copied to clipboard

Executes this pipeline stage with the given input and shared data.

Link copied to clipboard

Utility function to execute a pipeline stage that takes Unit as input.

Link copied to clipboard
open fun invokeHook(data: SharedPipelineData, input: CharSequence, output: Set<OutputResource>)

Invokes the hook function for this stage, if one is defined.

Link copied to clipboard
open override fun process(input: CharSequence, data: SharedPipelineData): Set<OutputResource>

Processes the input I and produces an output O.

Link copied to clipboard
infix fun <A, B, C> PipelineStage<A, B>.then(next: PipelineStage<B, C>): PipelineStage<A, C>

Chains two pipeline stages together to form a new pipeline stage.

Link copied to clipboard

Conditionally chains this pipeline stage with next if it is not null.