Changeset 2895


Ignore:
Timestamp:
06/19/07 16:33:08 (12 years ago)
Author:
curtis
Message:

Override setId to clear last image cache.

File:
1 edited

Legend:

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

    r2867 r2895  
    5151 
    5252  // -- IFormatReader API methods -- 
     53 
     54  /* @see IFormatReader#setId(String) */ 
     55  public void setId(String id) throws FormatException, IOException { 
     56    super.setId(id); 
     57 
     58    // clear last image cache 
     59    lastImage = null; 
     60    lastImageIndex = -1; 
     61    lastImageSeries = -1; 
     62  } 
     63 
     64  /* @see IFormatReader#setId(id, force) */ 
     65  public void setId(String id, boolean force) 
     66    throws FormatException, IOException 
     67  { 
     68    super.setId(id, force); 
     69 
     70    // clear last image cache 
     71    lastImage = null; 
     72    lastImageIndex = -1; 
     73    lastImageSeries = -1; 
     74  } 
    5375 
    5476  /* @see IFormatReader#getImageCount() */ 
Note: See TracChangeset for help on using the changeset viewer.