com.sun.xml.ws.streaming
Class XMLStreamWriterUtil
java.lang.Object
com.sun.xml.ws.streaming.XMLStreamWriterUtil
public class XMLStreamWriterUtil
- extends Object
XMLStreamWriterUtil provides some utility methods intended to be used
in conjunction with a StAX XMLStreamWriter.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getOutputStream
@Nullable
public static OutputStream getOutputStream(javax.xml.stream.XMLStreamWriter writer)
throws javax.xml.stream.XMLStreamException
- Gives the underlying stream for XMLStreamWriter. It closes any start elements, and returns the stream so
that JAXB can write infoset directly to the stream.
- Parameters:
writer
- XMLStreamWriter for which stream is required
- Returns:
- underlying OutputStream, null if writer doesn't provide a way to get it
- Throws:
javax.xml.stream.XMLStreamException
- if any of writer operations throw the exception
encodeQName
public static String encodeQName(javax.xml.stream.XMLStreamWriter writer,
QName qname,
PrefixFactory prefixFactory)