org.jboss.soa.esb.listeners.message.mime
Interface MimeDecoder

All Known Implementing Classes:
NullMimeDecoder, TextPlainMimeDecoder

public interface MimeDecoder

Mime handler.

Author:
tom.fennelly@gmail.com

Nested Class Summary
static class MimeDecoder.Factory
          Factory class.
 
Method Summary
 java.lang.Object decode(byte[] bytes)
          Decode the specified array of bytes based on the MimeType annotation on the implementing MimeDecoder.
 

Method Detail

decode

java.lang.Object decode(byte[] bytes)
                        throws MimeDecodeException
Decode the specified array of bytes based on the MimeType annotation on the implementing MimeDecoder.

Parameters:
bytes - The bytes to be decoded.
Returns:
The decoded bytes.
Throws:
MimeDecodeException - Error while decoding the byts array.