Example usage for javax.activation DataSource interface-usage

List of usage examples for javax.activation DataSource interface-usage

Introduction

In this page you can find the example usage for javax.activation DataSource interface-usage.

Usage

From source file org.soitoolkit.commons.mule.mail.TextDataSource.java

/**
 * Text based DataSource that use UTF-8 encoding, i.e. supporting non US 7-bit ASCII characters.
 * 
 * @author Magnus Larsson
 *
 */

From source file no.digipost.api.representations.Dokumentpakke.java

public class Dokumentpakke implements DataSource {

    private final InputStream asicStream;
    private byte[] asicBytes;
    public static final String CONTENT_TYPE_KRYPTERT_DOKUMENTPAKKE = "application/cms";

From source file org.apache.axis.attachments.ImageDataSource.java

public class ImageDataSource implements DataSource {
    protected static Log log = LogFactory.getLog(ImageDataSource.class.getName());

    public static final String CONTENT_TYPE = "image/jpeg";

    private final String name;

From source file org.apache.axis2.format.TextFromElementDataSource.java

/**
 * Data source that represents the text of a given {@link OMElement}.
 * <p>
 * The expression
 * <pre>new TextFromElementDataSource(element, charset, contentType)</pre>
 * produces a DataSource implementation that is equivalent to

From source file org.opensingular.form.type.core.attachment.IAttachmentRef.java

/**
 * Referncia para um arquivo binrio persistido, contudo no identifica a data ou tamanho do arquivo.
 *
 * @author Daniel C. Bordin
 */
public interface IAttachmentRef extends Serializable, DataSource {

From source file com.adaptris.util.text.mime.InputStreamDataSource.java

public class InputStreamDataSource implements DataSource, MimeConstants, MimeHeaders {

    private InternetHeaders headers = null;
    private String contentType = null;
    private String messageId = null;
    private byte[] wrappedBytes;

From source file io.milton.servlet.upload.FileItemExt.java

public class FileItemExt implements DataSource, FileItem {

    private static final long serialVersionUID = 1L;

    private final FileItem item;

From source file com.eviware.soapui.impl.wsdl.submit.transports.http.XOPPartDataSource.java

public final class XOPPartDataSource implements DataSource {
    private String content;
    private final String contentType;
    private final SchemaType schemaType;
    private File source;

From source file org.niord.core.mail.CachedUrlDataSource.java

/**
 * If you compose a mime message with attachments by
 * setting "MimeBodyPart.setDataHandler(new DataHandler(url))",
 * then the url will actually be fetched 2-3 times during
 * the process of sending the mail by javamail!!
 * <p></p>

From source file org.structr.mail.DynamicFileDataSource.java

/**
 * Data Source for dynamic files which has two purposes
 * 1. Only generate the dynamic file content once (the getInputStream() method is called twice when sending an email. once to determine the Content-Transfer-Encoding and once for the actual content)
 * 2. Generate the dynamic file content at attachment time so the currently store'd variables are used and can be overwritten without losing the file contents
 */
public class DynamicFileDataSource implements DataSource {