1 18 package org.apache.batik.transcoder; 19 20 import java.util.Map ; 21 22 29 public class TranscoderSupport { 30 31 static final ErrorHandler defaultErrorHandler = new DefaultErrorHandler(); 32 33 34 protected TranscodingHints hints = new TranscodingHints(); 35 36 protected ErrorHandler handler = defaultErrorHandler; 37 38 41 public TranscoderSupport() { } 42 43 46 public TranscodingHints getTranscodingHints() { 47 return new TranscodingHints(hints); 48 } 49 50 56 public void addTranscodingHint(TranscodingHints.Key key, Object value) { 57 hints.put(key, value); 58 } 59 60 64 public void removeTranscodingHint(TranscodingHints.Key key) { 65 hints.remove(key); 66 } 67 68 73 public void setTranscodingHints(Map hints) { 74 this.hints.putAll(hints); 75 } 76 77 82 public void setTranscodingHints(TranscodingHints hints) { 83 this.hints = hints; 84 } 85 86 91 public void setErrorHandler(ErrorHandler handler) { 92 this.handler = handler; 93 } 94 95 99 public ErrorHandler getErrorHandler() { 100 return handler; 101 } 102 } 103 104 105 | Popular Tags |