1 8 9 package javax.xml.transform; 10 11 24 public abstract class TransformerFactory { 25 26 29 protected TransformerFactory() { } 30 31 32 37 42 43 49 54 55 100 public static TransformerFactory newInstance() 101 throws TransformerFactoryConfigurationError { 102 try { 103 return (TransformerFactory ) FactoryFinder.find( 104 105 "javax.xml.transform.TransformerFactory", 106 107 "com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl"); 108 } catch (FactoryFinder.ConfigurationError e) { 109 throw new TransformerFactoryConfigurationError ( 110 e.getException(), 111 e.getMessage()); 112 } 113 } 114 115 143 public abstract Transformer newTransformer(Source source) 144 throws TransformerConfigurationException ; 145 146 157 public abstract Transformer newTransformer() 158 throws TransformerConfigurationException ; 159 160 176 public abstract Templates newTemplates(Source source) 177 throws TransformerConfigurationException ; 178 179 204 public abstract Source getAssociatedStylesheet( 205 Source source, 206 String media, 207 String title, 208 String charset) 209 throws TransformerConfigurationException ; 210 211 218 public abstract void setURIResolver(URIResolver resolver); 219 220 226 public abstract URIResolver getURIResolver(); 227 228 230 266 public abstract void setFeature(String name, boolean value) 267 throws TransformerConfigurationException ; 268 269 286 public abstract boolean getFeature(String name); 287 288 298 public abstract void setAttribute(String name, Object value); 299 300 309 public abstract Object getAttribute(String name); 310 311 320 public abstract void setErrorListener(ErrorListener listener); 321 322 327 public abstract ErrorListener getErrorListener(); 328 329 } 330 331 | Popular Tags |