FileDocCategorySizeDatePackage
SMIMECompressed.javaAPI DocBouncy Castle Crypto API 1.41 (Java 1.5)1326Wed Oct 01 10:55:30 BST 2008org.bouncycastle.mail.smime

SMIMECompressed

public class SMIMECompressed extends org.bouncycastle.cms.CMSCompressedData
containing class for an S/MIME pkcs7-mime MimePart.

Fields Summary
MimePart
message
Constructors Summary
public SMIMECompressed(MimeBodyPart message)

        super(getInputStream(message));

        this.message = message;
    
public SMIMECompressed(MimeMessage message)

        super(getInputStream(message));

        this.message = message;
    
Methods Summary
public javax.mail.internet.MimePartgetCompressedContent()

        return message;
    
private static java.io.InputStreamgetInputStream(javax.mail.Part bodyPart)

        try
        {
            return bodyPart.getInputStream();
        }
        catch (IOException e)
        {
            throw new MessagingException("can't extract input stream: " + e);
        }