1 18 package org.apache.batik.apps.rasterizer; 19 20 import java.io.File ; 21 import java.util.Map ; 22 import java.util.Vector ; 23 24 import org.apache.batik.transcoder.Transcoder; 25 26 33 public class DefaultSVGConverterController implements SVGConverterController { 34 45 public boolean proceedWithComputedTask(Transcoder transcoder, 46 Map hints, 47 Vector sources, 48 Vector dest){ 49 return true; 50 } 51 52 58 public boolean proceedWithSourceTranscoding(SVGConverterSource source, 59 File dest) { 60 System.out.println("About to transcoder source of type: " + source.getClass().getName()); 61 return true; 62 } 63 64 73 public boolean proceedOnSourceTranscodingFailure(SVGConverterSource source, 74 File dest, 75 String errorCode){ 76 return true; 77 } 78 79 83 public void onSourceTranscodingSuccess(SVGConverterSource source, 84 File dest){ 85 } 86 } 87 88 | Popular Tags |