46 |
import java.io.OutputStream; |
import java.io.OutputStream; |
47 |
import java.io.Writer; |
import java.io.Writer; |
48 |
import java.util.Properties; |
import java.util.Properties; |
49 |
import javax.xml.transform.Result; |
//import javax.xml.transform.Result; |
50 |
|
|
51 |
/** |
/** |
52 |
* Factory for obtaining XML stream and event writers for various kinds of |
* Factory for obtaining XML stream and event writers for various kinds of |
77 |
* If true, the writer will create a namespace declaration for any |
* If true, the writer will create a namespace declaration for any |
78 |
* attribute that doesn't have a namespace declaration in scope. |
* attribute that doesn't have a namespace declaration in scope. |
79 |
*/ |
*/ |
80 |
public static final java.lang.String IS_REPAIRING_NAMESPACES = |
public static final java.lang.String IS_PREFIX_DEFAULTING = |
81 |
"javax.xml.stream.isRepairingNamespaces"; |
"javax.xml.stream.isPrefixDefaulting"; |
82 |
|
|
83 |
protected XMLOutputFactory() |
protected XMLOutputFactory() |
84 |
{ |
{ |
220 |
* @exception UnsupportedOperationException if this method is not |
* @exception UnsupportedOperationException if this method is not |
221 |
* supported |
* supported |
222 |
*/ |
*/ |
223 |
public abstract XMLStreamWriter createXMLStreamWriter(Result result) |
//public abstract XMLStreamWriter createXMLStreamWriter(Result result) |
224 |
throws XMLStreamException; |
// throws XMLStreamException; |
225 |
|
|
226 |
/** |
/** |
227 |
* Creates a new event writer. |
* Creates a new event writer. |
228 |
* @exception UnsupportedOperationException if this method is not |
* @exception UnsupportedOperationException if this method is not |
229 |
* supported |
* supported |
230 |
*/ |
*/ |
231 |
public abstract XMLEventWriter createXMLEventWriter(Result result) |
//public abstract XMLEventWriter createXMLEventWriter(Result result) |
232 |
throws XMLStreamException; |
// throws XMLStreamException; |
233 |
|
|
234 |
/** |
/** |
235 |
* Creates a new event writer. |
* Creates a new event writer. |
265 |
throws IllegalArgumentException; |
throws IllegalArgumentException; |
266 |
|
|
267 |
/** |
/** |
268 |
|
* Indicates whether writers created by this factory will perform prefix |
269 |
|
* defaulting. |
270 |
|
* @see #IS_PREFIX_DEFAULTING |
271 |
|
*/ |
272 |
|
public abstract boolean isPrefixDefaulting(); |
273 |
|
|
274 |
|
/** |
275 |
* Indicates whether the specified property is supported. |
* Indicates whether the specified property is supported. |
276 |
*/ |
*/ |
277 |
public abstract boolean isPropertySupported(String name); |
public abstract boolean isPropertySupported(String name); |
278 |
|
|
279 |
|
/** |
280 |
|
* Sets whether writers created by this factory will perform prefix |
281 |
|
* defaulting. |
282 |
|
* @see #IS_PREFIX_DEFAULTING |
283 |
|
*/ |
284 |
|
public abstract void setPrefixDefaulting(boolean value); |
285 |
|
|
286 |
} |
} |
287 |
|
|