FileDocCategorySizeDatePackage
ReturnDigest1UserInterface.javaAPI DocExample667Sun Dec 12 10:51:28 GMT 2004None

ReturnDigest1UserInterface

public class ReturnDigest1UserInterface 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]);
      ReturnDigest1 dr = new ReturnDigest1(f);
      Thread t = new Thread(dr);
      t.start();
      
      // Now print the result
      StringBuffer result = new StringBuffer(f.toString());
      result.append(": ");
      byte[] digest = dr.getDigest();
      for (int j = 0; j < digest.length; j++) {
        result.append(digest[j] + " ");
      }  
      System.out.println(result);
      
    }