All Packages Class Hierarchy This Package Previous Next Index
Interface com.ibm.network.mail.base.MimeMap
- public interface MimeMap
This interface is implemented by classes which provide mapping between:
- MIME data type and MIME encoder.
- MIME data type and MIME decoder.
- Author:
- Mohit M. Sant
- See Also:
- Encodable, Decodable, MimeEncoder, MimeDecoder, MimeBodyPart, MimeMultipart
-
getDecoder(String, String)
- A concrete implementation would return the MIME
decoder to be used for decoding data, depending on Content-Transfer-Encoding
or Content-Type specified.
-
getEncoder(String)
- A concrete implementation would returns the MIME
encoder to be used for encoding data, depending on content
type specified.
getDecoder
public abstract MimeDecoder getDecoder(String mimeType,
String mimeEncoding)
- A concrete implementation would return the MIME
decoder to be used for decoding data, depending on Content-Transfer-Encoding
or Content-Type specified. If Content-Transfer-Encoding information is
provided, that information is used to return decoder, else the Content-Type
is used for returning a suitable decoder.
- Parameters:
- mimeType - Content-Type of the data that needs to be decoded.
- mimeEncoding - Content-Transfer-Encoding of the data that needs to be decoded.
- Returns:
-
MimeDecoder
for decoding data.
getEncoder
public abstract MimeEncoder getEncoder(String mimeType)
- A concrete implementation would returns the MIME
encoder to be used for encoding data, depending on content
type specified.
- Parameters:
- mimeType - Content-Type of the data that needs to be encoded.
- Returns:
-
MimeEncoder
for encoding data.
All Packages Class Hierarchy This Package Previous Next Index