1 55 56 package org.jboss.axis.encoding.ser; 57 58 import org.jboss.axis.encoding.DeserializationContext; 59 import org.jboss.logging.Logger; 60 import org.xml.sax.Attributes ; 61 import org.xml.sax.SAXException ; 62 63 import javax.activation.DataHandler ; 64 import java.io.IOException ; 65 66 70 public class PlainTextDataHandlerDeserializer extends JAFDataHandlerDeserializer 71 { 72 private static Logger log = Logger.getLogger(PlainTextDataHandlerDeserializer.class.getName()); 73 74 public void startElement(String namespace, String localName, 75 String prefix, Attributes attributes, 76 DeserializationContext context) 77 throws SAXException 78 { 79 80 super.startElement(namespace, localName, prefix, attributes, context); 81 82 if (getValue() instanceof DataHandler ) 83 { 84 try 85 { 86 DataHandler dh = (DataHandler )getValue(); 87 setValue(dh.getContent()); 88 } 89 catch (IOException ioe) 90 { 91 } 92 } 93 } } | Popular Tags |