1 3 9 10 package javax.xml.transform; 11 12 import java.util.Properties ; 13 14 34 public abstract class Transformer { 35 36 39 protected Transformer() { } 40 41 58 public void reset() { 59 60 throw new UnsupportedOperationException ( 62 "This Transformer, \"" + this.getClass().getName() + "\", does not support the reset functionality." 63 + " Specification \"" + this.getClass().getPackage().getSpecificationTitle() + "\"" 64 + " version \"" + this.getClass().getPackage().getSpecificationVersion() + "\"" 65 ); 66 } 67 68 88 public abstract void transform(Source xmlSource, Result outputTarget) 89 throws TransformerException ; 90 91 113 public abstract void setParameter(String name, Object value); 114 115 125 public abstract Object getParameter(String name); 126 127 150 151 154 public abstract void clearParameters(); 155 156 166 public abstract void setURIResolver(URIResolver resolver); 167 168 175 public abstract URIResolver getURIResolver(); 176 177 207 public abstract void setOutputProperties(Properties oformat); 208 209 244 public abstract Properties getOutputProperties(); 245 246 273 public abstract void setOutputProperty(String name, String value) 274 throws IllegalArgumentException ; 275 276 292 public abstract String getOutputProperty(String name) 293 throws IllegalArgumentException ; 294 295 301 public abstract void setErrorListener(ErrorListener listener) 302 throws IllegalArgumentException ; 303 304 310 public abstract ErrorListener getErrorListener(); 311 } 312 | Popular Tags |