FloodFile.TargetFile file = (FloodFile.TargetFile) fileiter.next(); Flood.RuntimeTargetFile rtf = receiver.flood.runtimeFileData[ fileIndex ];
FloodFile.TargetFile targetFile = (FloodFile.TargetFile) fileiter.next(); Flood.RuntimeTargetFile runtimeTargetFile = (Flood.RuntimeTargetFile) receiver.flood.runtimeTargetFiles.get(targetFile.name);
  public void HandleMethod( PeerConnection receiver, final Vector parameters ) throws Exception  {    if ( receiver.flood == null )    {      throw new Exception( "flood specific method from an unregistered peer!" );    }        // build params and call SendChunkMap    Vector scmParams = new Vector( receiver.flood.floodFile.files.size() * 2 );    Iterator fileiter = receiver.flood.floodFile.files.iterator();    for ( int fileIndex = 0; fileiter.hasNext(); ++fileIndex )    {      FloodFile.TargetFile file = (FloodFile.TargetFile) fileiter.next();      Flood.RuntimeTargetFile rtf = receiver.flood.runtimeFileData[ fileIndex ];            scmParams.add( file.name );      scmParams.add( new String( rtf.chunkMap ) );    }        receiver.SendMethod( SendChunkMapsMethodHandler.methodName, scmParams );  }