Top Description Fields Constructors Methods
org.bouncycastle.mail.smime

public Class CMSProcessableBodyPartOutbound

extends Object
implements CMSProcessable
Class Inheritance
All Implemented Interfaces
org.bouncycastle.cms.CMSProcessable
Imports
java.io.IOException, .OutputStream, javax.mail.BodyPart, .MessagingException, javax.mail.internet.MimeBodyPart, org.bouncycastle.cms.CMSException, .CMSProcessable, org.bouncycastle.mail.smime.util.CRLFOutputStream

a holding class for a BodyPart to be processed which does CRLF canocicalisation if dealing with non-binary data.

Field Summary

Modifier and TypeField and Description
private BodyPart
private String

Constructor Summary

AccessConstructor and Description
public
CMSProcessableBodyPartOutbound(BodyPart
body part to be processed
bodyPart
)

Create a processable with the default transfer encoding of 7bit

public
CMSProcessableBodyPartOutbound(BodyPart
body part to be processed
bodyPart
,
String
the new default to use.
defaultContentTransferEncoding
)

Create a processable with the a default transfer encoding of the passed in value.

Method Summary

Modifier and TypeMethod and Description
public Object
public void
write(OutputStream out)

Implements org.bouncycastle.cms.CMSProcessable.write.

generic routine to copy out the data we want processed - the OutputStream passed in will do the handling on it's own.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bodyPartback to summary
private BodyPart bodyPart
defaultContentTransferEncodingback to summary
private String defaultContentTransferEncoding

Constructor Detail

CMSProcessableBodyPartOutboundback to summary
public CMSProcessableBodyPartOutbound(BodyPart bodyPart)

Create a processable with the default transfer encoding of 7bit

Parameters
bodyPart:BodyPart

body part to be processed

CMSProcessableBodyPartOutboundback to summary
public CMSProcessableBodyPartOutbound(BodyPart bodyPart, String defaultContentTransferEncoding)

Create a processable with the a default transfer encoding of the passed in value.

Parameters
bodyPart:BodyPart

body part to be processed

defaultContentTransferEncoding:String

the new default to use.

Method Detail

getContentback to summary
public Object getContent()

Implements org.bouncycastle.cms.CMSProcessable.getContent.

writeback to summary
public void write(OutputStream out) throws IOException, CMSException

Implements org.bouncycastle.cms.CMSProcessable.write.

Doc from org.bouncycastle.cms.CMSProcessable.write.

generic routine to copy out the data we want processed - the OutputStream passed in will do the handling on it's own.

Note

this routine may be called multiple times.