org.codehaus.xfire.aegis.type.xml
Class SourceType

java.lang.Object
  extended by org.codehaus.xfire.aegis.type.Type
      extended by org.codehaus.xfire.aegis.type.xml.SourceType
All Implemented Interfaces:
org.codehaus.xfire.wsdl.SchemaType

public class SourceType
extends Type

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

The XML stream is converted DOMSource and sent off.

Author:
Dan Diephouse
See Also:
StAXSource, XMLInputFactory, STAXUtils

Constructor Summary
SourceType()
           
 
Method Summary
protected  org.xml.sax.XMLReader createXMLReader()
           
 java.lang.Object readObject(MessageReader mreader, org.codehaus.xfire.MessageContext context)
          Read in the XML fragment and create an object.
protected  void write(javax.xml.transform.Source object, javax.xml.stream.XMLStreamWriter writer)
           
 void writeObject(java.lang.Object object, MessageWriter writer, org.codehaus.xfire.MessageContext context)
          Writes the object to the MessageWriter.
 
Methods inherited from class org.codehaus.xfire.aegis.type.Type
equals, getDependencies, getSchemaType, getTypeClass, getTypeMapping, hashCode, isAbstract, isComplex, isNillable, isWriteOuter, setAbstract, setNillable, setSchemaType, setTypeClass, setTypeMapping, setWriteOuter, toString, 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 java.lang.Object readObject(MessageReader mreader,
                                   org.codehaus.xfire.MessageContext context)
                            throws org.codehaus.xfire.fault.XFireFault
Description copied from class: Type
Read in the XML fragment and create an object.

Specified by:
readObject in class Type
Returns:
Throws:
org.codehaus.xfire.fault.XFireFault

writeObject

public void writeObject(java.lang.Object object,
                        MessageWriter writer,
                        org.codehaus.xfire.MessageContext context)
                 throws org.codehaus.xfire.fault.XFireFault
Description copied from class: Type
Writes the object to the MessageWriter.

Specified by:
writeObject in class Type
Throws:
org.codehaus.xfire.fault.XFireFault

write

protected void write(javax.xml.transform.Source object,
                     javax.xml.stream.XMLStreamWriter writer)
              throws javax.xml.stream.FactoryConfigurationError,
                     javax.xml.stream.XMLStreamException,
                     org.codehaus.xfire.fault.XFireFault
Throws:
javax.xml.stream.FactoryConfigurationError
javax.xml.stream.XMLStreamException
org.codehaus.xfire.fault.XFireFault

createXMLReader

protected org.xml.sax.XMLReader createXMLReader()
                                         throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException


Copyright © 2004-2011. All Rights Reserved.