SMIMECompressedParserpublic class SMIMECompressedParser extends org.bouncycastle.cms.CMSCompressedDataParser Stream based containing class for an S/MIME pkcs7-mime compressed MimePart. |
Fields Summary |
---|
private final MimePart | message |
Constructors Summary |
---|
public SMIMECompressedParser(MimeBodyPart message)
this(message, 0);
| public SMIMECompressedParser(MimeMessage message)
this(message, 0);
| public SMIMECompressedParser(MimeBodyPart message, int bufferSize)Create a parser from a MimeBodyPart using the passed in buffer size
for reading it.
super(getInputStream(message, bufferSize));
this.message = message;
| public SMIMECompressedParser(MimeMessage message, int bufferSize)Create a parser from a MimeMessage using the passed in buffer size
for reading it.
super(getInputStream(message, bufferSize));
this.message = message;
|
Methods Summary |
---|
public javax.mail.internet.MimePart | getCompressedContent()
return message;
| private static java.io.InputStream | getInputStream(javax.mail.Part bodyPart, int bufferSize)
try
{
InputStream in = bodyPart.getInputStream();
if (bufferSize == 0)
{
return new BufferedInputStream(in);
}
else
{
return new BufferedInputStream(in, bufferSize);
}
}
catch (IOException e)
{
throw new MessagingException("can't extract input stream: " + e);
}
|
|