Java javax.mail.util ByteArrayDataSource fields, constructors, methods, implement or subclass

Example usage for Java javax.mail.util ByteArrayDataSource fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.mail.util ByteArrayDataSource.

The text is from its open source code.

Constructor

ByteArrayDataSource(InputStream is, String type)
Create a ByteArrayDataSource with data from the specified InputStream and with the specified MIME type.
ByteArrayDataSource(byte[] data, String type)
Create a ByteArrayDataSource with data from the specified byte array and with the specified MIME type.
ByteArrayDataSource(String data, String type)
Create a ByteArrayDataSource with data from the specified String and with the specified MIME type.

Method

StringgetContentType()
Get the MIME content type of the data.
InputStreamgetInputStream()
Return an InputStream for the data.
voidsetName(String name)
Set the name of the data.