public class XMLStreamWriterUtil extends Object
XMLStreamWriterUtil provides some utility methods intended to be used in conjunction with a StAX XMLStreamWriter.
Modifier and Type | Method and Description |
---|---|
static String |
encodeQName(XMLStreamWriter writer,
QName qname,
PrefixFactory prefixFactory) |
static String |
getEncoding(XMLStreamWriter writer)
Gives the encoding with which XMLStreamWriter is created.
|
static OutputStream |
getOutputStream(XMLStreamWriter writer)
Gives the underlying stream for XMLStreamWriter.
|
@Nullable public static OutputStream getOutputStream(XMLStreamWriter writer) throws XMLStreamException
writer
- XMLStreamWriter for which stream is requiredXMLStreamException
- if any of writer operations throw the exception@Nullable public static String getEncoding(XMLStreamWriter writer)
writer
- XMLStreamWriter for which encoding is requiredpublic static String encodeQName(XMLStreamWriter writer, QName qname, PrefixFactory prefixFactory)
Copyright © 2015 Oracle Corporation. All rights reserved.