1 55 56 package org.jboss.axis.encoding.ser; 57 58 import org.jboss.axis.attachments.PlainTextDataSource; 59 import org.jboss.axis.encoding.SerializationContext; 60 import org.jboss.logging.Logger; 61 import org.xml.sax.Attributes ; 62 63 import javax.activation.DataHandler ; 64 import javax.xml.namespace.QName ; 65 import java.io.IOException ; 66 67 72 public class PlainTextDataHandlerSerializer extends JAFDataHandlerSerializer 73 { 74 75 private static Logger log = Logger.getLogger(PlainTextDataHandlerSerializer.class.getName()); 76 77 80 public void serialize(QName name, Attributes attributes, 81 Object value, SerializationContext context) 82 throws IOException 83 { 84 DataHandler dh = new DataHandler (new PlainTextDataSource("source", (String )value)); 85 super.serialize(name, attributes, dh, context); 86 } } | Popular Tags |