chapter9
Class CMSProcessableFile

java.lang.Object
  extended by chapter9.CMSProcessableFile
All Implemented Interfaces:
org.bouncycastle.cms.CMSProcessable

public class CMSProcessableFile
extends java.lang.Object
implements org.bouncycastle.cms.CMSProcessable

CMSProcessable that handles File objects.


Constructor Summary
CMSProcessableFile(java.io.File file)
          Base constructor.
 
Method Summary
 java.lang.Object getContent()
          Return the File object we were created with.
 void write(java.io.OutputStream out)
          Write the contents of the file to the passed in OutputStream
 
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)
Base constructor.

Parameters:
file - a File object representing the file we want processed.
Method Detail

write

public void write(java.io.OutputStream out)
           throws java.io.IOException,
                  org.bouncycastle.cms.CMSException
Write the contents of the file to the passed in OutputStream

Specified by:
write in interface org.bouncycastle.cms.CMSProcessable
Parameters:
out - the OutputStream passed in by the CMS API.
Throws:
java.io.IOException
org.bouncycastle.cms.CMSException

getContent

public java.lang.Object getContent()
Return the File object we were created with.

Specified by:
getContent in interface org.bouncycastle.cms.CMSProcessable


Examples from "Beginning Cryptography with Java"