Package com.sun.xml.rpc.streaming
Class XMLWriterFactory
- java.lang.Object
-
- com.sun.xml.rpc.streaming.XMLWriterFactory
-
- Direct Known Subclasses:
FastInfosetWriterFactoryImpl,PrettyPrintingXMLWriterFactoryImpl,XMLWriterFactoryImpl
public abstract class XMLWriterFactory extends Object
Define a factory API to enable pluggable XMLWriter implementations.
- Author:
- JAX-RPC Development Team
- See Also:
XMLWriter
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedXMLWriterFactory()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract XMLWritercreateXMLWriter(OutputStream stream)Obtain an XMLWriter on the given OutputStream using the default encoding and XML declaration settings.abstract XMLWritercreateXMLWriter(OutputStream stream, String encoding)Obtain an XMLWriter on the given OutputStream using the given encoding and the default XML declaration settings.abstract XMLWritercreateXMLWriter(OutputStream stream, String encoding, boolean declare)Obtain an XMLWriter on the given OutputStream using the given encoding and the given XML declaration settings.static XMLWriterFactorynewInstance()Obtain an instance of a factory.
-
-
-
Method Detail
-
newInstance
public static XMLWriterFactory newInstance()
Obtain an instance of a factory. Since factories are stateless, only one copy of a factory exists and is returned to the application each time this method is called. The implementation class to be used can be overridden by setting the com.sun.xml.rpc.streaming.XMLWriterFactory system property.
-
createXMLWriter
public abstract XMLWriter createXMLWriter(OutputStream stream)
Obtain an XMLWriter on the given OutputStream using the default encoding and XML declaration settings.
-
createXMLWriter
public abstract XMLWriter createXMLWriter(OutputStream stream, String encoding)
Obtain an XMLWriter on the given OutputStream using the given encoding and the default XML declaration settings.
-
createXMLWriter
public abstract XMLWriter createXMLWriter(OutputStream stream, String encoding, boolean declare)
Obtain an XMLWriter on the given OutputStream using the given encoding and the given XML declaration settings.
-
-