Example usage for Java javax.mail.util ByteArrayDataSource fields, constructors, methods, implement or subclass
The text is from its open source code.
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. |
String | getContentType() Get the MIME content type of the data. |
InputStream | getInputStream() Return an InputStream for the data. |
void | setName(String name) Set the name of the data. |