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

ImageDataHandlerDeserializer

public class ImageDataHandlerDeserializer extends JAFDataHandlerDeserializer
ImageDataHandler Deserializer Modified by Russell Butek

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();

                InputStream is = dh.getInputStream();
                Image image = ImageIOFactory.getImageIO().loadImage(is);
                setValue(image);
            }
            catch (Exception e) {
            }
        }