Changeset 6527


Ignore:
Timestamp:
06/11/10 12:16:05 (9 years ago)
Author:
melissa
Message:

Tweaked Metamorph reader's type detection so that TIFFs are not automatically picked up.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.2/components/bio-formats/src/loci/formats/in/MetamorphReader.java

    r6515 r6527  
    121121    domains = new String[] {FormatTools.LM_DOMAIN}; 
    122122    hasCompanionFiles = true; 
     123    suffixSufficient = false; 
    123124  } 
    124125 
    125126  // -- IFormatReader API methods -- 
     127 
     128  /* @see loci.formats.IFormatReader#isThisType(String, boolean) */ 
     129  public boolean isThisType(String name, boolean open) { 
     130    if (checkSuffix(name, "nd")) return true; 
     131    return super.isThisType(name, open); 
     132  } 
    126133 
    127134  /* @see loci.formats.IFormatReader#isThisType(RandomAccessInputStream) */ 
  • trunk/components/bio-formats/src/loci/formats/in/MetamorphReader.java

    r6515 r6527  
    121121    domains = new String[] {FormatTools.LM_DOMAIN}; 
    122122    hasCompanionFiles = true; 
     123    suffixSufficient = false; 
    123124  } 
    124125 
    125126  // -- IFormatReader API methods -- 
     127 
     128  /* @see loci.formats.IFormatReader#isThisType(String, boolean) */ 
     129  public boolean isThisType(String name, boolean open) { 
     130    if (checkSuffix(name, "nd")) return true; 
     131    return super.isThisType(name, open); 
     132  } 
    126133 
    127134  /* @see loci.formats.IFormatReader#isThisType(RandomAccessInputStream) */ 
Note: See TracChangeset for help on using the changeset viewer.