Package com.helger.mail.datasource
Class ByteArrayDataSource
java.lang.Object
com.helger.mail.datasource.ByteArrayDataSource
- All Implemented Interfaces:
IExtendedDataSource,jakarta.activation.DataSource
A DataSource implementation based on a byte array
- Author:
- Philip Helger
-
Field Summary
Fields inherited from interface com.helger.mail.datasource.IExtendedDataSource
DEFAULT_CONTENT_TYPE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.helger.mail.datasource.IExtendedDataSource
getAsDataHandler, getEncodingAware
-
Constructor Details
-
ByteArrayDataSource
-
-
Method Details
-
directGetBytes
-
getInputStream
- Specified by:
getInputStreamin interfacejakarta.activation.DataSource
-
getOutputStream
@Nonnull public com.helger.commons.io.stream.NonBlockingByteArrayOutputStream getOutputStream() throws IOException- Specified by:
getOutputStreamin interfacejakarta.activation.DataSource- Throws:
IOException
-
getContentType
- Specified by:
getContentTypein interfacejakarta.activation.DataSource
-
getName
- Specified by:
getNamein interfacejakarta.activation.DataSource
-
toString
-