Package org.bouncycastle.cms
Class CMSProcessableFile
- java.lang.Object
-
- org.bouncycastle.cms.CMSProcessableFile
-
- All Implemented Interfaces:
CMSProcessable,CMSTypedData
public class CMSProcessableFile extends java.lang.Object implements CMSTypedData
a holding class for a file of data to be processed.
-
-
Constructor Summary
Constructors Constructor Description CMSProcessableFile(java.io.File file)CMSProcessableFile(java.io.File file, int bufSize)CMSProcessableFile(org.bouncycastle.asn1.ASN1ObjectIdentifier type, java.io.File file, int bufSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetContent()Return the file handle.org.bouncycastle.asn1.ASN1ObjectIdentifiergetContentType()java.io.InputStreamgetInputStream()voidwrite(java.io.OutputStream zOut)generic routine to copy out the data we want processed - the OutputStream passed in will do the handling on it's own.
-
-
-
Method Detail
-
getInputStream
public java.io.InputStream getInputStream() throws java.io.IOException, CMSException- Throws:
java.io.IOExceptionCMSException
-
write
public void write(java.io.OutputStream zOut) throws java.io.IOException, CMSExceptionDescription copied from interface:CMSProcessablegeneric 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:
writein interfaceCMSProcessable- Throws:
java.io.IOExceptionCMSException
-
getContent
public java.lang.Object getContent()
Return the file handle.- Specified by:
getContentin interfaceCMSProcessable
-
getContentType
public org.bouncycastle.asn1.ASN1ObjectIdentifier getContentType()
- Specified by:
getContentTypein interfaceCMSTypedData
-
-