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

MimeMultipartDataHandlerDeserializer

public class MimeMultipartDataHandlerDeserializer extends JAFDataHandlerDeserializer
MimeMultipartDataHandler Deserializer
author
Russell Butek (butek@us.ibm.com)

Fields Summary
protected static Log
log
Constructors Summary
Methods Summary
public voidstartElement(java.lang.String namespace, java.lang.String localName, java.lang.String prefix, org.xml.sax.Attributes attributes, org.apache.axis.encoding.DeserializationContext context)


         
                                
                              
          

        super.startElement(namespace, localName, prefix, attributes, context);

        if (getValue() instanceof DataHandler) {
            try {
                DataHandler dh = (DataHandler) getValue();
                MimeMultipart mmp = new MimeMultipart(dh.getDataSource());
                if (mmp.getCount() == 0) {
                    mmp = null;
                }
                setValue(mmp);
            }
            catch (Exception e) {
                throw new SAXException(e);
            }
        }