Changeset 3470


Ignore:
Timestamp:
12/12/07 13:07:18 (12 years ago)
Author:
curtis
Message:

Change variable names and comments for mapFile-related methods to reflect
that the IRandomAccess is a random access handle, but not necessarily a file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/formats/Location.java

    r3467 r3470  
    9595  } 
    9696 
    97   /** Maps the given id to the given file. */ 
    98   public static void mapFile(String id, IRandomAccess file) { 
     97  /** Maps the given id to the given random access handle. */ 
     98  public static void mapFile(String id, IRandomAccess ira) { 
    9999    if (idMap == null) idMap = new Hashtable(); 
    100100    if (id == null) return; 
    101     if (file == null) idMap.remove(id); 
    102     else idMap.put(id, file); 
     101    if (ira == null) idMap.remove(id); 
     102    else idMap.put(id, ira); 
    103103  } 
    104104 
     
    121121  } 
    122122 
    123   /** Gets the file for the given id. */ 
     123  /** Gets the random access handle for the given id. */ 
    124124  public static IRandomAccess getMappedFile(String id) { 
    125125    if (idMap == null) return null; 
    126     IRandomAccess file = null; 
     126    IRandomAccess ira = null; 
    127127    if (id != null && (idMap.get(id) instanceof IRandomAccess)) { 
    128       file = (IRandomAccess) idMap.get(id); 
    129     } 
    130     return file; 
     128      ira = (IRandomAccess) idMap.get(id); 
     129    } 
     130    return ira; 
    131131  } 
    132132 
Note: See TracChangeset for help on using the changeset viewer.