Class PassPhrase.PassPhraseToFileThread

java.lang.Object
  |
  +--PassPhrase.PassPhraseToFileThread
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
PassPhrase

public class PassPhrase.PassPhraseToFileThread
extends java.lang.Object
implements java.lang.Runnable

This inner class can be used by programs wich wants a progessbars, or wants to run the process as a thread The Thread version must be used like this: PassPhrase outerClass = new PassPhrase(); PassPhrase.PassPhraseToFileThread passPhraser = null; passPhraser = outerClass. new PassPhraseToFileThread(passphrase, keyfile); or passPhraser = outerClass. new PassPhraseToFileThread(passphrase, keyfile, newfile); Thread passPhraseThread = new Thread(passPhraser); passPhraseThread.start(); Then the program may access the percentComplete field


Field Summary
 int percentComplete
           
 
Constructor Summary
PassPhrase.PassPhraseToFileThread(java.lang.String pass_arg, java.io.File key_arg)
          Initializes the PassPhraseToFileThread object using the specified passphrase and keyfile
PassPhrase.PassPhraseToFileThread(java.lang.String pass_arg, java.io.File key_arg, java.io.File new_arg)
          Initializes the PassPhraseToFileThread object using the specified passphrase and keyfile and the file to put the result in
 
Method Summary
 void run()
          This method will be called by Thread.start() and does the actual work
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

percentComplete

public int percentComplete
Constructor Detail

PassPhrase.PassPhraseToFileThread

public PassPhrase.PassPhraseToFileThread(java.lang.String pass_arg,
                                         java.io.File key_arg)
                                  throws java.io.FileNotFoundException
Initializes the PassPhraseToFileThread object using the specified passphrase and keyfile
Parameters:
pass_arg - the Passphrase that is to be used on the file
key_arg - the file to be passPhrased, will be overwritten
Throws:
java.io.FileNotFoundException - if the key_arg is not found

PassPhrase.PassPhraseToFileThread

public PassPhrase.PassPhraseToFileThread(java.lang.String pass_arg,
                                         java.io.File key_arg,
                                         java.io.File new_arg)
                                  throws java.io.FileNotFoundException
Initializes the PassPhraseToFileThread object using the specified passphrase and keyfile and the file to put the result in
Parameters:
pass_arg - the Passphrase that is to be used on the file
key_arg - the file to be passPhrased
new_arg - the file to put the result in
Throws:
java.io.FileNotFoundException - if the key_arg is not found
Method Detail

run

public void run()
This method will be called by Thread.start() and does the actual work
Specified by:
run in interface java.lang.Runnable