Package com.aelitis.azureus.core.diskmanager.file

Examples of com.aelitis.azureus.core.diskmanager.file.FMFileOwner


       
      for (Iterator it=owners.iterator();it.hasNext();){
       
        Object[]  entry = (Object[])it.next();
         
        FMFileOwner  this_owner = (FMFileOwner)entry[0];
       
        if (((Boolean)entry[1]).booleanValue()){
                   
          write_access++;
         
          TOTorrentFile this_tf = this_owner.getTorrentFile();
         
          if ( my_torrent_file != null && this_tf != null && my_torrent_file.getLength() == this_tf.getLength()){
           
            write_access_lax++;
          }
         
          users += (users.length()==0?"":",") + this_owner.getName() + " [write]";

        }else{
         
          read_access++;
         
          users += (users.length()==0?"":",") + this_owner.getName() + " [read]";
        }
      }

      if (   write_access > 1 ||
          ( write_access == 1 && read_access > 0 )){
View Full Code Here


           
          while( it2.hasNext()){
           
            Object[]  entry = (Object[])it2.next();

            FMFileOwner  owner   = (FMFileOwner)entry[0];
            Boolean    write  = (Boolean)entry[1];
            String    reason  = (String)entry[2];
           
           
            str += (str.length()==0?"":", ") + owner.getName() + "[" + (write.booleanValue()?"write":"read")+ "/" + reason + "]";
          }
         

          writer.println( Debug.secretFileName(key) + " -> " + str );
        }
View Full Code Here

TOP

Related Classes of com.aelitis.azureus.core.diskmanager.file.FMFileOwner

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.