Changeset 2127


Ignore:
Timestamp:
01/19/07 12:48:16 (13 years ago)
Author:
curtis
Message:

Add Location(File) constructor; readd FilePattern.findPattern(File).

Location:
trunk/loci/formats
Files:
2 edited

Legend:

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

    r2117 r2127  
    289289   */ 
    290290  public static String findPattern(Location file) { 
     291    return findPattern(file.getName(), file.getAbsoluteFile().getParent()); 
     292  } 
     293 
     294  /** 
     295   * Identifies the group pattern from a given file within that group. 
     296   * @param file The file to use as a template for the match. 
     297   */ 
     298  public static String findPattern(File file) { 
    291299    return findPattern(file.getName(), file.getAbsoluteFile().getParent()); 
    292300  } 
  • trunk/loci/formats/Location.java

    r2117 r2127  
    5757    } 
    5858    if (!isURL) file = new File(getMappedId(pathname)); 
     59  } 
     60 
     61  public Location(File file) { 
     62    isURL = false; 
     63    this.file = file; 
    5964  } 
    6065 
Note: See TracChangeset for help on using the changeset viewer.