Package org.apache.batik.apps.rasterizer
Class DefaultSVGConverterController
- java.lang.Object
-
- org.apache.batik.apps.rasterizer.DefaultSVGConverterController
-
- All Implemented Interfaces:
SVGConverterController
public class DefaultSVGConverterController extends java.lang.Object implements SVGConverterController
Default controller for theSVGConverteroperation.- Version:
- $Id: DefaultSVGConverterController.java 1882538 2020-10-15 12:16:55Z ssteiner $
-
-
Constructor Summary
Constructors Constructor Description DefaultSVGConverterController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonSourceTranscodingSuccess(SVGConverterSource source, java.io.File dest)Invoked when the rasterizer successfully transcoded the input source.booleanproceedOnSourceTranscodingFailure(SVGConverterSource source, java.io.File dest, java.lang.String errorCode)Invoked when the rasterizer got an error while transcoding the input source.booleanproceedWithComputedTask(Transcoder transcoder, java.util.Map hints, java.util.List sources, java.util.List dest)Invoked when the rasterizer has computed the exact description of what it should do.booleanproceedWithSourceTranscoding(SVGConverterSource source, java.io.File dest)Invoked when the rasterizer is about to start transcoding of a given source.
-
-
-
Method Detail
-
proceedWithComputedTask
public boolean proceedWithComputedTask(Transcoder transcoder, java.util.Map hints, java.util.List sources, java.util.List dest)
Invoked when the rasterizer has computed the exact description of what it should do. The controller should return true if the transcoding process should proceed or false otherwise.- Specified by:
proceedWithComputedTaskin interfaceSVGConverterController- Parameters:
transcoder- Transcoder which will be used for the conversionhints- set of hints that were set on the transcodersources- list of SVG sources it will convert.dest- list of destination file it will use
-
proceedWithSourceTranscoding
public boolean proceedWithSourceTranscoding(SVGConverterSource source, java.io.File dest)
Invoked when the rasterizer is about to start transcoding of a given source. The controller should return true if the source should be transcoded and false otherwise.- Specified by:
proceedWithSourceTranscodingin interfaceSVGConverterController
-
proceedOnSourceTranscodingFailure
public boolean proceedOnSourceTranscodingFailure(SVGConverterSource source, java.io.File dest, java.lang.String errorCode)
Invoked when the rasterizer got an error while transcoding the input source. The controller should return true if the transcoding process should continue on other sources and it should return false if it should not.- Specified by:
proceedOnSourceTranscodingFailurein interfaceSVGConverterController- Parameters:
errorCode- see theSVGConvertererror code descriptions.
-
onSourceTranscodingSuccess
public void onSourceTranscodingSuccess(SVGConverterSource source, java.io.File dest)
Invoked when the rasterizer successfully transcoded the input source.- Specified by:
onSourceTranscodingSuccessin interfaceSVGConverterController
-
-