1 package javax.xml.stream; 2 3 import javax.xml.transform.Result ; 4 5 83 public abstract class XMLOutputFactory { 84 87 public static final String IS_REPAIRING_NAMESPACES= 88 "javax.xml.stream.isRepairingNamespaces"; 89 90 protected XMLOutputFactory(){} 91 92 96 public static XMLOutputFactory newInstance() 97 throws FactoryConfigurationError 98 { 99 return (XMLOutputFactory) FactoryFinder.find("javax.xml.stream.XMLOutputFactory", 100 "com.sun.xml.internal.stream.XMLOutputFactoryImpl"); 101 } 102 103 112 public static XMLInputFactory newInstance(String factoryId, 113 ClassLoader classLoader) 114 throws FactoryConfigurationError { 115 try { 116 return (XMLInputFactory) FactoryFinder.newInstance(factoryId, classLoader, false); 118 } catch (FactoryFinder.ConfigurationError e) { 119 throw new FactoryConfigurationError(e.getException(), 120 e.getMessage()); 121 } 122 } 123 124 129 public abstract XMLStreamWriter createXMLStreamWriter(java.io.Writer stream) throws XMLStreamException; 130 131 136 public abstract XMLStreamWriter createXMLStreamWriter(java.io.OutputStream stream) throws XMLStreamException; 137 138 144 public abstract XMLStreamWriter createXMLStreamWriter(java.io.OutputStream stream, 145 String encoding) throws XMLStreamException; 146 147 154 public abstract XMLStreamWriter createXMLStreamWriter(Result result) throws XMLStreamException; 155 156 157 164 public abstract XMLEventWriter createXMLEventWriter(Result result) throws XMLStreamException; 165 166 171 public abstract XMLEventWriter createXMLEventWriter(java.io.OutputStream stream) throws XMLStreamException; 172 173 174 175 181 public abstract XMLEventWriter createXMLEventWriter(java.io.OutputStream stream, 182 String encoding) throws XMLStreamException; 183 184 189 public abstract XMLEventWriter createXMLEventWriter(java.io.Writer stream) throws XMLStreamException; 190 191 197 public abstract void setProperty(java.lang.String name, 198 Object value) 199 throws IllegalArgumentException ; 200 201 207 public abstract Object getProperty(java.lang.String name) 208 throws IllegalArgumentException ; 209 210 216 public abstract boolean isPropertySupported(String name); 217 } 218 219 220 221 222 223 224 225 226 | Popular Tags |