public class BasicRenderer extends Object implements Renderer
Renderer
contract.Constructor and Description |
---|
BasicRenderer(Options options)
Construct a renderer instance using the given options.
|
Modifier and Type | Method and Description |
---|---|
protected Result |
buildResult(File targetFile) |
protected Transformer |
buildTransformer(File targetFile,
FormatPlan formatPlan,
File stagingDirectory) |
File |
getAttachableBundle(File source) |
protected void |
releaseResult(Result transformationResult) |
void |
render(File sourceFile,
FormatPlan formatPlan,
File renderingDirectory,
File stagingDirectory)
Performs the actual rendering or transforming of the DocBook sources into
the respective output format.
|
protected final Options options
public BasicRenderer(Options options)
options
- The options.public File getAttachableBundle(File source)
getAttachableBundle
in interface Renderer
public void render(File sourceFile, FormatPlan formatPlan, File renderingDirectory, File stagingDirectory) throws RenderingException, XSLTException
render
in interface Renderer
sourceFile
- The source DocBook file.formatPlan
- The formatting plan.renderingDirectory
- The directory into which to renderstagingDirectory
- The directory where images resources were stagedRenderingException
- Problem writing the output file(s).XSLTException
- Problem performing XSL transformation.protected Transformer buildTransformer(File targetFile, FormatPlan formatPlan, File stagingDirectory) throws RenderingException, XSLTException
RenderingException
XSLTException
protected Result buildResult(File targetFile) throws RenderingException, XSLTException
RenderingException
XSLTException
protected void releaseResult(Result transformationResult)
Copyright © 2007-2013 JBoss, a division of Red Hat, Inc. All Rights Reserved.