org.bouncycastle.cms

Class CMSProcessableFile

Implemented Interfaces:
CMSProcessable

public class CMSProcessableFile
extends java.lang.Object
implements CMSProcessable

a holding class for a file of data to be processed.

Constructor Summary

CMSProcessableFile(File file)
CMSProcessableFile(File file, int bufSize)

Method Summary

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

Constructor Details

CMSProcessableFile

public CMSProcessableFile(File file)

CMSProcessableFile

public CMSProcessableFile(File file,
                          int bufSize)

Method Details

getContent

public Object getContent()
Return the file handle.
Specified by:
getContent in interface CMSProcessable

write

public void write(OutputStream zOut)
            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