Top Description Fields Constructors Methods
org.bouncycastle.cms

public Class CMSProcessableFile

extends Object
implements CMSTypedData, CMSReadable
Class Inheritance
All Implemented Interfaces
org.bouncycastle.cms.CMSReadable, org.bouncycastle.cms.CMSTypedData, org.bouncycastle.cms.CMSProcessable
Imports
java.io.BufferedInputStream, .File, .FileInputStream, .IOException, .InputStream, .OutputStream, org.bouncycastle.asn1.ASN1ObjectIdentifier, org.bouncycastle.asn1.cms.CMSObjectIdentifiers, org.bouncycastle.util.io.Streams

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

Field Summary

Modifier and TypeField and Description
private final int
private static final int
private final File
private final ASN1ObjectIdentifier

Constructor Summary

AccessConstructor and Description
public
public
CMSProcessableFile(File file, int bufSize)

public
CMSProcessableFile(ASN1ObjectIdentifier type, File file, int bufSize)

Method Summary

Modifier and TypeMethod and Description
public Object
getContent()

Implements org.bouncycastle.cms.CMSProcessable.getContent.

Return the file handle.
public ASN1ObjectIdentifier
public InputStream
public void
write(OutputStream zOut)

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

bufSizeback to summary
private final int bufSize
DEFAULT_BUF_SIZEback to summary
private static final int DEFAULT_BUF_SIZE
fileback to summary
private final File file
typeback to summary
private final ASN1ObjectIdentifier type

Constructor Detail

CMSProcessableFileback to summary
public CMSProcessableFile(File file)
CMSProcessableFileback to summary
public CMSProcessableFile(File file, int bufSize)
CMSProcessableFileback to summary
public CMSProcessableFile(ASN1ObjectIdentifier type, File file, int bufSize)

Method Detail

getContentback to summary
public Object getContent()

Implements org.bouncycastle.cms.CMSProcessable.getContent.

Return the file handle.

getContentTypeback to summary
public ASN1ObjectIdentifier getContentType()

Implements org.bouncycastle.cms.CMSTypedData.getContentType.

getInputStreamback to summary
public InputStream getInputStream() throws IOException, CMSException

Implements org.bouncycastle.cms.CMSReadable.getInputStream.

writeback to summary
public void write(OutputStream zOut) 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.