java.lang.Object
jakarta.activation.FileDataSource
jakarta.mail.internet.MimeBodyPart.EncodedFileDataSource
- All Implemented Interfaces:
jakarta.activation.DataSource
,EncodingAware
- Enclosing class:
MimeBodyPart
private static class MimeBodyPart.EncodedFileDataSource
extends jakarta.activation.FileDataSource
implements EncodingAware
A FileDataSource class that allows us to specify the
Content-Type and Content-Transfer-Encoding.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the MIME Content-Transfer-Encoding to use for this data, or null to indicate that an appropriate value should be chosen by the caller.Methods inherited from class jakarta.activation.FileDataSource
getFile, getInputStream, getName, getOutputStream, setFileTypeMap
-
Field Details
-
contentType
-
encoding
-
-
Constructor Details
-
EncodedFileDataSource
-
-
Method Details
-
getContentType
- Specified by:
getContentType
in interfacejakarta.activation.DataSource
- Overrides:
getContentType
in classjakarta.activation.FileDataSource
-
getEncoding
Description copied from interface:EncodingAware
Return the MIME Content-Transfer-Encoding to use for this data, or null to indicate that an appropriate value should be chosen by the caller.- Specified by:
getEncoding
in interfaceEncodingAware
- Returns:
- the Content-Transfer-Encoding value, or null
-