FileDocCategorySizeDatePackage
CallbackDigestUserInterface.javaAPI DocExample622Sun Dec 12 10:51:16 GMT 2004None

CallbackDigestUserInterface

public class CallbackDigestUserInterface extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

  
    for (int i = 0; i < args.length; i++) {    
      // Calculate the digest
      File f = new File(args[i]);
      CallbackDigest cb = new CallbackDigest(f);
      Thread t = new Thread(cb);
      t.start();
    } 
    
  
public static voidreceiveDigest(byte[] digest, java.lang.String name)

  
    StringBuffer result = new StringBuffer(name);
    result.append(": ");
    for (int j = 0; j < digest.length; j++) {
      result.append(digest[j] + " ");
    }  
    System.out.println(result);