Bouncy Castle Cryptography Library 1.60

org.bouncycastle.cms
Class CMSProcessableFile

java.lang.Object
  extended byorg.bouncycastle.cms.CMSProcessableFile
All Implemented Interfaces:
CMSProcessable, org.bouncycastle.cms.CMSReadable, CMSTypedData

public class CMSProcessableFile
extends java.lang.Object
implements CMSTypedData, org.bouncycastle.cms.CMSReadable

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


Constructor Summary
CMSProcessableFile(org.bouncycastle.asn1.ASN1ObjectIdentifier type, java.io.File file, int bufSize)
           
CMSProcessableFile(java.io.File file)
           
CMSProcessableFile(java.io.File file, int bufSize)
           
 
Method Summary
 java.lang.Object getContent()
          Return the file handle.
 org.bouncycastle.asn1.ASN1ObjectIdentifier getContentType()
           
 java.io.InputStream getInputStream()
           
 void write(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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CMSProcessableFile

public CMSProcessableFile(java.io.File file)

CMSProcessableFile

public CMSProcessableFile(java.io.File file,
                          int bufSize)

CMSProcessableFile

public CMSProcessableFile(org.bouncycastle.asn1.ASN1ObjectIdentifier type,
                          java.io.File file,
                          int bufSize)
Method Detail

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException,
                                          CMSException
Specified by:
getInputStream in interface org.bouncycastle.cms.CMSReadable
Throws:
java.io.IOException
CMSException

write

public void write(java.io.OutputStream zOut)
           throws java.io.IOException,
                  CMSException
Description copied from interface: CMSProcessable
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
Throws:
java.io.IOException
CMSException

getContent

public java.lang.Object getContent()
Return the file handle.

Specified by:
getContent in interface CMSProcessable

getContentType

public org.bouncycastle.asn1.ASN1ObjectIdentifier getContentType()
Specified by:
getContentType in interface CMSTypedData

Bouncy Castle Cryptography Library 1.60