Enumeration fileiter = files.elements(); for ( ; fileiter.hasMoreElements(); )
Iterator fileiter = files.iterator(); for ( ; fileiter.hasNext(); )
  private void ComputeContentHash()  {    if ( contentHash == null )    {      // calculate the content hash      if ( files != null )      {        String content = "";        java.util.Collections.sort( files );        Enumeration fileiter = files.elements();        for ( ; fileiter.hasMoreElements(); )        {          TargetFile file = (TargetFile) fileiter.nextElement();          content = content + file.name;                    java.util.Collections.sort( file.chunks );          Enumeration chunkiter = file.chunks.elements();          for ( ; chunkiter.hasMoreElements(); )          {            Chunk chunk = (Chunk) chunkiter.nextElement();            content = content + chunk.hash;          }        }                System.out.println( "Hashing on: " + content );        contentHash = Encoder.SHA1Base64Encode( content );      }    }  }