Apache CXF API

org.apache.cxf.aegis.type.xml
Class SourceType

java.lang.Object
  extended by org.apache.cxf.aegis.type.AegisType
      extended by org.apache.cxf.aegis.type.xml.SourceType

public class SourceType
extends AegisType

Reads and writes javax.xml.transform.Source types.

The XML stream is converted DOMSource and sent off.

Author:
Dan Diephouse
See Also:
javanet.staxutils.StAXSource, XMLInputFactory, org.apache.cxf.aegis.util.STAXUtils

Field Summary
 
Fields inherited from class org.apache.cxf.aegis.type.AegisType
typeClass
 
Constructor Summary
SourceType()
           
 
Method Summary
protected  XMLReader createXMLReader()
           
 Object readObject(MessageReader mreader, Context context)
          Read in the XML fragment and create an object.
protected  void write(Source object, javax.xml.stream.XMLStreamWriter writer)
           
 void writeObject(Object object, MessageWriter writer, Context context)
          Writes the object to the MessageWriter.
 
Methods inherited from class org.apache.cxf.aegis.type.AegisType
addToSchemaElement, equals, getDependencies, getMaxOccurs, getMinOccurs, getSchemaType, getType, getTypeClass, getTypeMapping, hashCode, hasMaxOccurs, hasMinOccurs, isAbstract, isComplex, isFlatArray, isNillable, isWriteOuter, setAbstract, setFlatArray, setNillable, setSchemaType, setTypeClass, setTypeMapping, setWriteOuter, toString, usesUtilityTypes, usesXmime, writeSchema
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SourceType

public SourceType()
Method Detail

readObject

public Object readObject(MessageReader mreader,
                         Context context)
                  throws DatabindingException
Description copied from class: AegisType
Read in the XML fragment and create an object.

Specified by:
readObject in class AegisType
Returns:
Throws:
DatabindingException

writeObject

public void writeObject(Object object,
                        MessageWriter writer,
                        Context context)
                 throws DatabindingException
Description copied from class: AegisType
Writes the object to the MessageWriter.

Specified by:
writeObject in class AegisType
Throws:
DatabindingException

write

protected void write(Source object,
                     javax.xml.stream.XMLStreamWriter writer)
              throws javax.xml.stream.FactoryConfigurationError,
                     javax.xml.stream.XMLStreamException,
                     DatabindingException
Throws:
javax.xml.stream.FactoryConfigurationError
javax.xml.stream.XMLStreamException
DatabindingException

createXMLReader

protected XMLReader createXMLReader()
                             throws SAXException
Throws:
SAXException

Apache CXF API

Apache CXF