public class PrettyPrintingXMLWriterFactoryImpl extends XMLWriterFactory
A concrete factory for XMLWriter objects.
By default, writers created by this factory use UTF-8 encoding and write the namespace declaration at the top of each document they produce.
| Constructor and Description |
|---|
PrettyPrintingXMLWriterFactoryImpl() |
| Modifier and Type | Method and Description |
|---|---|
XMLWriter |
createXMLWriter(OutputStream stream)
Obtain an XMLWriter on the given OutputStream using the default encoding
and XML declaration settings.
|
XMLWriter |
createXMLWriter(OutputStream stream,
String encoding)
Obtain an XMLWriter on the given OutputStream using the given encoding
and the default XML declaration settings.
|
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.
|
newInstancepublic XMLWriter createXMLWriter(OutputStream stream)
XMLWriterFactorycreateXMLWriter in class XMLWriterFactorypublic XMLWriter createXMLWriter(OutputStream stream, String encoding)
XMLWriterFactorycreateXMLWriter in class XMLWriterFactorypublic XMLWriter createXMLWriter(OutputStream stream, String encoding, boolean declare)
XMLWriterFactorycreateXMLWriter in class XMLWriterFactoryCopyright © 2017–2019 Eclipse Foundation. All rights reserved.