Changeset 4676


Ignore:
Timestamp:
12/04/08 17:45:52 (11 years ago)
Author:
curtis
Message:

Add a second, simpler signature for ImageInfo.testRead().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/components/bio-formats/src/loci/formats/tools/ImageInfo.java

    r4590 r4676  
    5353   * A utility method for reading a file from the command line, 
    5454   * and displaying the results in a simple display. 
     55   */ 
     56  public static boolean testRead(String[] args) 
     57    throws FormatException, IOException 
     58  { 
     59    return testRead(new ImageReader(), args); 
     60  } 
     61 
     62  /** 
     63   * A utility method for reading a file from the command line, and 
     64   * displaying the results in a simple display, using the given reader. 
    5565   */ 
    5666  public static boolean testRead(IFormatReader reader, String[] args) 
     
    641651 
    642652  public static void main(String[] args) throws FormatException, IOException { 
    643     if (!testRead(new ImageReader(), args)) System.exit(1); 
     653    if (!testRead(args)) System.exit(1); 
    644654  } 
    645655 
Note: See TracChangeset for help on using the changeset viewer.