public class XML11OutputFactory extends XMLOutputFactory
startDocument() method delegates to
startDocument("1.1"), thus producing XML 1.1 instead of
1.0 by default.IS_REPAIRING_NAMESPACES| Constructor and Description |
|---|
XML11OutputFactory(XMLOutputFactory delegate)
Create an output factory that generates stream writers that
prefer XML 1.1 instead of 1.0 by default.
|
| Modifier and Type | Method and Description |
|---|---|
XMLEventWriter |
createXMLEventWriter(OutputStream stream) |
XMLEventWriter |
createXMLEventWriter(OutputStream stream,
String encoding) |
XMLEventWriter |
createXMLEventWriter(Result result) |
XMLEventWriter |
createXMLEventWriter(Writer stream) |
XMLStreamWriter |
createXMLStreamWriter(OutputStream stream) |
XMLStreamWriter |
createXMLStreamWriter(OutputStream stream,
String encoding) |
XMLStreamWriter |
createXMLStreamWriter(Result result) |
XMLStreamWriter |
createXMLStreamWriter(Writer stream) |
Object |
getProperty(String name) |
boolean |
isPropertySupported(String name) |
void |
setProperty(String name,
Object value) |
protected XMLStreamWriter |
wrap(XMLStreamWriter writer)
Wrap the supplied writer in a wrapper that prefers XML 1.1 over 1.0
|
newFactory, newFactory, newInstance, newInstancepublic XML11OutputFactory(XMLOutputFactory delegate)
protected XMLStreamWriter wrap(XMLStreamWriter writer) throws XMLStreamException
XMLStreamExceptionpublic XMLStreamWriter createXMLStreamWriter(Writer stream) throws XMLStreamException
createXMLStreamWriter in class XMLOutputFactoryXMLStreamExceptionpublic XMLStreamWriter createXMLStreamWriter(OutputStream stream) throws XMLStreamException
createXMLStreamWriter in class XMLOutputFactoryXMLStreamExceptionpublic XMLStreamWriter createXMLStreamWriter(OutputStream stream, String encoding) throws XMLStreamException
createXMLStreamWriter in class XMLOutputFactoryXMLStreamExceptionpublic XMLStreamWriter createXMLStreamWriter(Result result) throws XMLStreamException
createXMLStreamWriter in class XMLOutputFactoryXMLStreamExceptionpublic XMLEventWriter createXMLEventWriter(Result result) throws XMLStreamException
createXMLEventWriter in class XMLOutputFactoryXMLStreamExceptionpublic XMLEventWriter createXMLEventWriter(OutputStream stream) throws XMLStreamException
createXMLEventWriter in class XMLOutputFactoryXMLStreamExceptionpublic XMLEventWriter createXMLEventWriter(OutputStream stream, String encoding) throws XMLStreamException
createXMLEventWriter in class XMLOutputFactoryXMLStreamExceptionpublic XMLEventWriter createXMLEventWriter(Writer stream) throws XMLStreamException
createXMLEventWriter in class XMLOutputFactoryXMLStreamExceptionpublic void setProperty(String name, Object value) throws IllegalArgumentException
setProperty in class XMLOutputFactoryIllegalArgumentExceptionpublic Object getProperty(String name) throws IllegalArgumentException
getProperty in class XMLOutputFactoryIllegalArgumentExceptionpublic boolean isPropertySupported(String name)
isPropertySupported in class XMLOutputFactoryCopyright © 2024 GATE. All rights reserved.