public abstract class XMLWriterFactory extends Object
Define a factory API to enable pluggable XMLWriter implementations.
XMLWriter| Modifier | Constructor and Description |
|---|---|
protected |
XMLWriterFactory() |
| Modifier and Type | Method and Description |
|---|---|
abstract XMLWriter |
createXMLWriter(OutputStream stream)
Obtain an XMLWriter on the given OutputStream using the default encoding
and XML declaration settings.
|
abstract XMLWriter |
createXMLWriter(OutputStream stream,
String encoding)
Obtain an XMLWriter on the given OutputStream using the given encoding
and the default XML declaration settings.
|
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.
|
static XMLWriterFactory |
newInstance()
Obtain an instance of a factory.
|
public static XMLWriterFactory newInstance()
public abstract XMLWriter createXMLWriter(OutputStream stream)
public abstract XMLWriter createXMLWriter(OutputStream stream, String encoding)
public abstract XMLWriter createXMLWriter(OutputStream stream, String encoding, boolean declare)
Copyright © 2017–2019 Eclipse Foundation. All rights reserved.