com.sun.xml.ws.message.source
Class SourceUtils

java.lang.Object
  extended by com.sun.xml.ws.message.source.SourceUtils

final class SourceUtils
extends Object


Field Summary
(package private)  int srcType
           
 
Constructor Summary
SourceUtils(Source src)
           
 
Method Summary
 boolean isDOMSource()
           
 boolean isSaxSource()
           
 boolean isStreamSource()
           
static void serializeSource(Source src, javax.xml.stream.XMLStreamWriter writer)
           
 QName sniff(Source src)
          This would peek into the Source (DOMSource and SAXSource) for the localName and NamespaceURI of the top-level element.
 QName sniff(Source src, RootElementSniffer sniffer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

srcType

int srcType
Constructor Detail

SourceUtils

public SourceUtils(Source src)
Method Detail

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