Class RenderWithDot
java.lang.Object
ca.mcscert.jpipe.compiler.model.Transformation<String,byte[]>
ca.mcscert.jpipe.compiler.steps.transformations.RenderWithDot
Compilation step that renders DOT text to a binary image format by invoking
the
dot command-line tool.
The dot binary must be available on PATH. Use
jpipe --doctor to verify before running.
stdin is written in a virtual thread while stdout is read in the caller thread, avoiding deadlock when the process's pipe buffers are smaller than the input.
-
Nested Class Summary
Nested classes/interfaces inherited from class Transformation
Transformation.Step<I,O> -
Field Summary
Fields inherited from class Transformation
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected byte[]run(String dotSource, CompilationContext ctx) Business logic of this step.
-
Constructor Details
-
RenderWithDot
- Parameters:
dotFormat- thedot -Tformat name, e.g."png"or"jpeg".
-
-
Method Details
-
run
Description copied from class:TransformationBusiness logic of this step. Must not returnnull; may throw any exception. Usectxto report non-fatal diagnostics or inspect previously accumulated errors.- Specified by:
runin classTransformation<String,byte[]> - Parameters:
dotSource- the value produced by the previous step.ctx- compilation context carrying the source path and diagnostic bag.- Returns:
- the transformed value — never
null.
-