Changeset 5107


Ignore:
Timestamp:
05/13/09 09:10:37 (11 years ago)
Author:
curtis
Message:

Minor tweaks.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/components/bio-formats/src/loci/formats/in/FlexReader.java

    r5098 r5107  
    5656 
    5757  /** Custom IFD entry for Flex XML. */ 
    58   protected static final int FLEX = 65200; 
     58  public static final int FLEX = 65200; 
    5959 
    6060  // -- Fields -- 
  • trunk/utils/ExtractFlexMetadata.java

    r5106 r5107  
    88import loci.common.RandomAccessInputStream; 
    99import loci.formats.TiffTools; 
     10import loci.formats.in.FlexReader; 
    1011 
    11 /** Convenience method to extract the metadata from all the Flex files present in a directory. */ 
     12/** 
     13 * Convenience method to extract the metadata from 
     14 * all the Flex files present in a directory. 
     15 */ 
    1216public class ExtractFlexMetadata { 
    1317 
     
    1519    File dir; 
    1620    if (args.length != 1 || !(dir = new File(args[0])).canRead()) { 
    17       System.out.println("Usage: java ExtractFlexMetdata dir"); 
     21      System.out.println("Usage: java ExtractFlexMetadata dir"); 
    1822      return; 
    1923    } 
     
    2529        RandomAccessInputStream in = new RandomAccessInputStream(id); 
    2630        String xml = (String) TiffTools.getIFDValue(TiffTools.getIFDs(in)[0], 
    27           65200, true, String.class); 
     31          FlexReader.FLEX, true, String.class); 
    2832        in.close(); 
    2933        FileWriter writer = new FileWriter(new File(outId)); 
Note: See TracChangeset for help on using the changeset viewer.