FileDocCategorySizeDatePackage
SourceDataHandlerSerializer.javaAPI DocApache Axis 1.42055Sat Apr 22 18:57:28 BST 2006org.apache.axis.encoding.ser

SourceDataHandlerSerializer

public class SourceDataHandlerSerializer extends JAFDataHandlerSerializer
SourceDataHandler Serializer
author
Russell Butek (butek@us.ibm.com)

Fields Summary
protected static Log
log
Constructors Summary
Methods Summary
public voidserialize(javax.xml.namespace.QName name, org.xml.sax.Attributes attributes, java.lang.Object value, org.apache.axis.encoding.SerializationContext context)
Serialize a Source DataHandler quantity.


              
         
                             
         
    
        if (value != null) {
            if (!(value instanceof StreamSource)) {
                throw new IOException(Messages.getMessage("badSource",
                        value.getClass().getName()));
            }
            DataHandler dh = new DataHandler(new SourceDataSource("source",
                    "text/xml", (StreamSource) value));
            super.serialize(name, attributes, dh, context);
        }