com.sun.xml.ws.message.source
Class SourceUtils
java.lang.Object
com.sun.xml.ws.message.source.SourceUtils
final class SourceUtils
- extends Object
Field Summary |
(package private) int |
srcType
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
srcType
int srcType
SourceUtils
public SourceUtils(Source src)
isDOMSource
public boolean isDOMSource()
isStreamSource
public boolean isStreamSource()
isSaxSource
public boolean isSaxSource()
sniff
public QName sniff(Source src)
- This would peek into the Source (DOMSource and SAXSource) for the localName and NamespaceURI
of the top-level element.
- Parameters:
src
-
- Returns:
- QName of the payload
sniff
public QName sniff(Source src,
RootElementSniffer sniffer)
serializeSource
public static void serializeSource(Source src,
javax.xml.stream.XMLStreamWriter writer)
throws javax.xml.stream.XMLStreamException
- Throws:
javax.xml.stream.XMLStreamException