Changeset 4143


Ignore:
Timestamp:
06/30/08 13:13:43 (12 years ago)
Author:
melissa
Message:

Added flag to disable file stitching.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/formats/ome/OmeisImporter.java

    r4116 r4143  
    6666 
    6767  /** Reader for handling file formats. */ 
    68   private FileStitcher reader; 
     68  private IFormatReader reader; 
    6969 
    7070  /** Metadata object, for gathering OME-XML metadata. */ 
    7171  private OMEXMLMetadata omexmlMeta; 
    7272 
     73  private boolean stitch; 
     74 
    7375  // -- Constructor -- 
    7476 
    7577  public OmeisImporter() { 
    76     reader = new FileStitcher(new ChannelSeparator(new ChannelFiller())); 
     78    this(true); 
     79  } 
     80 
     81  public OmeisImporter(boolean stitchFiles) { 
     82    stitch = stitchFiles; 
     83    reader = new ChannelSeparator(new ChannelFiller()); 
     84    if (stitch) reader = new FileStitcher(reader); 
    7785    omexmlMeta = new OMEXML2003FCMetadata(); 
    7886    reader.setOriginalMetadataPopulated(true); 
     
    579587   */ 
    580588  public static void main(String[] args) { 
    581     OmeisImporter importer = new OmeisImporter(); 
    582     boolean version = false, test = false; 
     589    boolean version = false, test = false, stitch = true; 
    583590    int[] fileIds = new int[args.length]; 
    584591 
     
    589596      else if ("-test".equalsIgnoreCase(args[i])) test = true; 
    590597      else if ("-http-response".equalsIgnoreCase(args[i])) http = true; 
     598      else if ("-nostitch".equalsIgnoreCase(args[i])) stitch = false; 
    591599      else { 
    592600        try { 
     
    603611    fileIds = trimIds; 
    604612 
     613    OmeisImporter importer = new OmeisImporter(stitch); 
     614 
    605615    // process the IDs 
    606616    try { 
Note: See TracChangeset for help on using the changeset viewer.