private static class MimeBodyPart.EncodedFileDataSource extends javax.activation.FileDataSource implements EncodingAware
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
contentType |
private java.lang.String |
encoding |
| Constructor and Description |
|---|
EncodedFileDataSource(java.io.File file,
java.lang.String contentType,
java.lang.String encoding) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getContentType() |
java.lang.String |
getEncoding()
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.
|
private java.lang.String contentType
private java.lang.String encoding
public EncodedFileDataSource(java.io.File file,
java.lang.String contentType,
java.lang.String encoding)
public java.lang.String getContentType()
getContentType in interface javax.activation.DataSourcegetContentType in class javax.activation.FileDataSourcepublic java.lang.String getEncoding()
EncodingAwaregetEncoding in interface EncodingAware