Package com.helger.mail.datasource
Class InputStreamProviderDataSource
java.lang.Object
com.helger.mail.datasource.InputStreamProviderDataSource
- All Implemented Interfaces:
IExtendedDataSource,jakarta.activation.DataSource
A special
DataSource implementation based on data from
IHasInputStream.- Author:
- Philip Helger
-
Field Summary
Fields inherited from interface com.helger.mail.datasource.IExtendedDataSource
DEFAULT_CONTENT_TYPE -
Constructor Summary
ConstructorsConstructorDescriptionInputStreamProviderDataSource(com.helger.commons.io.IHasInputStream aISP, String sName) InputStreamProviderDataSource(com.helger.commons.io.IHasInputStream aISP, String sName, com.helger.commons.mime.IMimeType aContentType) InputStreamProviderDataSource(com.helger.commons.io.IHasInputStream aISP, String sName, String sContentType) -
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
-
InputStreamProviderDataSource
-
InputStreamProviderDataSource
-
InputStreamProviderDataSource
-
-
Method Details
-
getInputStream
- Specified by:
getInputStreamin interfacejakarta.activation.DataSource
-
getOutputStream
- Specified by:
getOutputStreamin interfacejakarta.activation.DataSource
-
getContentType
- Specified by:
getContentTypein interfacejakarta.activation.DataSource
-
getName
- Specified by:
getNamein interfacejakarta.activation.DataSource
-
toString
-