Example usage for javax.activation DataHandler subclass-usage

List of usage examples for javax.activation DataHandler subclass-usage

Introduction

In this page you can find the example usage for javax.activation DataHandler subclass-usage.

Usage

From source file org.apache.axiom.attachments.lifecycle.impl.DataHandlerExtImpl.java

public class DataHandlerExtImpl extends DataHandler implements DataHandlerExt, Observer {

    private static final Log log = LogFactory.getLog(DataHandlerExtImpl.class);
    private DataHandler dataHandler = null;
    private LifecycleManager manager = null;
    private static int READ_COUNT = 1;

From source file org.apache.axis2.util.WrappedDataHandler.java

/**
 * This class acts as a wrapper for the javax.activation.DataHandler class.
 * It is used to store away a (potentially) user-defined content-type value along with
 * the DataHandler instance.   We'll delegate all method calls except for getContentType()
 * to the real DataHandler instance.   
 */

From source file org.topazproject.ambra.email.impl.FreemarkerTemplateMailer.java

class BodyPartDataHandler extends DataHandler {
    public BodyPartDataHandler(final ByteArrayOutputStream outputStream, final String contentType) {
        super(new DataSource() {
            public InputStream getInputStream() throws IOException {
                return new ByteArrayInputStream(outputStream.toByteArray());
            }