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.DataSource
getContentType
in class javax.activation.FileDataSource
public java.lang.String getEncoding()
EncodingAware
getEncoding
in interface EncodingAware