Module jakarta.mail

Class ByteArrayDataSource

java.lang.Object
jakarta.mail.util.ByteArrayDataSource
All Implemented Interfaces:
DataSource

public class ByteArrayDataSource extends Object implements DataSource
A DataSource backed by a byte array. The byte array may be passed in directly, or may be initialized from an InputStream or a String.
Since:
JavaMail 1.4