org.bouncycastle.mail.smime

Class CMSProcessableBodyPartOutbound

Implemented Interfaces:
CMSProcessable

public class CMSProcessableBodyPartOutbound
extends java.lang.Object
implements CMSProcessable

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

Constructor Summary

CMSProcessableBodyPartOutbound(BodyPart bodyPart)
Create a processable with the default transfer encoding of 7bit
CMSProcessableBodyPartOutbound(BodyPart bodyPart, String defaultContentTransferEncoding)
Create a processable with the a default transfer encoding of the passed in value.

Method Summary

Object
getContent()
void
write(OutputStream out)
generic routine to copy out the data we want processed - the OutputStream passed in will do the handling on it's own.

Constructor Details

CMSProcessableBodyPartOutbound

public CMSProcessableBodyPartOutbound(BodyPart bodyPart)
Create a processable with the default transfer encoding of 7bit

Parameters:
bodyPart - body part to be processed


CMSProcessableBodyPartOutbound

public CMSProcessableBodyPartOutbound(BodyPart bodyPart,
                                      String defaultContentTransferEncoding)
Create a processable with the a default transfer encoding of the passed in value.

Parameters:
bodyPart - body part to be processed
defaultContentTransferEncoding - the new default to use.

Method Details

getContent

public Object getContent()
Specified by:
getContent in interface CMSProcessable


write

public void write(OutputStream out)
            throws IOException,
                   CMSException
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.

Specified by:
write in interface CMSProcessable