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

public Class CMSProcessableBodyPartInbound

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

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

Field Summary

Modifier and TypeField and Description
private final BodyPart
private final String

Constructor Summary

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

Create a processable with the default transfer encoding of 7bit

public
CMSProcessableBodyPartInbound(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 final BodyPart bodyPart
defaultContentTransferEncodingback to summary
private final String defaultContentTransferEncoding

Constructor Detail

CMSProcessableBodyPartInboundback to summary
public CMSProcessableBodyPartInbound(BodyPart bodyPart)

Create a processable with the default transfer encoding of 7bit

Parameters
bodyPart:BodyPart

body part to be processed

CMSProcessableBodyPartInboundback to summary
public CMSProcessableBodyPartInbound(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.