All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----com.ibm.network.mail.pop3.decoder.MimeDecoderBean
UserInterfaceBean
which passes the message that needs to be decoded.
This bean currently supports the following MIME types:
The bean can decode
Decodable
interface.
MimeMessage
.
InputStream
.
The decoded data is written to the specified OutputStream
.
This bean throws the following events:
DecodeEvent
toUserInterfaceBean
to notify completion of decoding a bodypart.
It supports the following event listener interfaces:
DecodeMessageListener
which is called by
UserInterfaceBean
to decode
a bodypart of a message.
MimeDecoderBean
.
DecodeEvent
.
Decodable
.
DecodeMessageEvent
.
MimeMessage
.
DecodeEvent
.
public MimeDecoderBean()
MimeDecoderBean
.
public void addDecodeListener(DecodeListener el)
DecodeEvent
.
For adding listeners which need to receive notification of completion of decoding a bodypart of a message.
public void decodeBodyPart(Decodable bodyPart)
Decodable
.
Decodable
is an interface implemented by MimeBodyPart
and MimeMultipart
.
Either of these may be requested to be decoded.
At present only "7bit" and "base64" encoded bodyparts
can be decoded.
Decodable
bodypart which needs to be decoded.
public void decodeBodyPart(DecodeMessageEvent evt)
DecodeMessageEvent
.
For requesting decoding of a bodypart.
The bodypart to be decoded needs to be provided to the bean
either through the event or by an alternate mechanism.
public void decodeData(InputStream in, OutputStream out, String encoding)
InputStream
of encoded MIME data.
OutputStream
where decoded data should be written.
InputStream
, OutputStream
or encoding is null, or
if encoding is not one of "base64" or "7-bit".
public void decodeMessage(MimeMessage msg)
MimeMessage
.
MimeMessage
to be decoded.
public void removeDecodeListener(DecodeListener el)
DecodeEvent
.
For removing listeners which need to receive notification of completion of decoding a bodypart of a message.
All Packages Class Hierarchy This Package Previous Next Index