Changeset 1943


Ignore:
Timestamp:
12/19/06 12:18:14 (13 years ago)
Author:
melissa
Message:

Added "-debug" command-line option to turn on debugging statements.

Location:
trunk/loci/formats
Files:
41 edited

Legend:

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

    r1940 r1943  
    594594  /** Initializes the given file. */ 
    595595  protected void initFile(String id) throws FormatException, IOException { 
     596    if (FormatReader.debug) { 
     597      System.out.println("calling FileStitcher.initFile(" + id + ")"); 
     598    }  
     599 
    596600    currentId = id; 
    597601    fp = findPattern(id); 
  • trunk/loci/formats/FormatReader.java

    r1926 r1943  
    3939 
    4040  // -- Constants -- 
    41  
    42   /** Debugging flag. */ 
    43   protected static final boolean DEBUG = false; 
    4441 
    4542  /** Debugging level. 1=basic, 2=extended, 3=everything. */ 
     
    8683    pixelTypes[FormatReader.DOUBLE] = "double"; 
    8784  } 
     85 
     86  // -- Static fields -- 
     87 
     88  /** Debugging flag. */ 
     89  protected static boolean debug = false; 
    8890 
    8991  // -- Fields -- 
     
    500502          else if (args[i].equals("-normalize")) normalize = true; 
    501503          else if (args[i].equals("-fast")) fastBlit = true; 
     504          else if (args[i].equals("-debug")) debug = true; 
    502505          else if (args[i].equals("-range")) { 
    503506            try { 
     
    546549      System.out.println("    -fast: paint RGB images as quickly as possible" + 
    547550        "(may result in loss of precision)"); 
     551      System.out.println("   -debug: turn on debugging output"); 
    548552      System.out.println(); 
    549553      return false; 
  • trunk/loci/formats/in/AVIReader.java

    r1806 r1943  
    184184  /** Initializes the given AVI file. */ 
    185185  protected void initFile(String id) throws FormatException, IOException { 
     186    if (debug) System.out.println("calling AVIReader.initFile(" + id + ")"); 
    186187    super.initFile(id); 
    187188    in = new RandomAccessStream(getMappedId(id)); 
  • trunk/loci/formats/in/AliconaReader.java

    r1705 r1943  
    152152  /** Initializes the given Alicona file. */ 
    153153  protected void initFile(String id) throws FormatException, IOException { 
     154    if (debug) System.out.println("calling AliconaReader.initFile(" + id + ")"); 
    154155    super.initFile(id); 
    155156    in = new RandomAccessStream(getMappedId(id)); 
  • trunk/loci/formats/in/AndorReader.java

    r1826 r1943  
    129129      metadata.put("Number of colors", 
    130130        "" + DataTools.bytesToInt(header, pos, 4, little)); 
    131       if (DEBUG) { 
     131      if (debug) { 
    132132        System.out.println("bytes for 'number of colors'"); 
    133133        for (int i=pos; i<pos+4; i++) { System.out.print(header[i] + " "); } 
     
    135135      } 
    136136      pos += 4; 
    137       if (DEBUG) { 
     137      if (debug) { 
    138138        System.out.println("bytes for color and comment flags"); 
    139139        for (int i=pos; i<pos+16; i++) { System.out.print(header[i] + " "); } 
     
    199199 
    200200      for (int i=1; i<=10; i++) { 
    201         if (DEBUG) { 
     201        if (debug) { 
    202202          System.out.println("bytes for dimension " + i + " name"); 
    203203          for (int j=pos; j<pos+64; j++) { System.out.print(header[j] + " "); } 
  • trunk/loci/formats/in/BMPReader.java

    r1718 r1943  
    239239  /** Initializes the given BMP file. */ 
    240240  protected void initFile(String id) throws FormatException, IOException { 
     241    if (debug) System.out.println("calling BMPReader.initFile(" + id + ")"); 
    241242    super.initFile(id); 
    242243    in = new RandomAccessStream(getMappedId(id)); 
  • trunk/loci/formats/in/BaseTiffReader.java

    r1939 r1943  
    518518      currentOrder[0] = "XYCZT"; 
    519519    } 
    520     catch (Exception e) { /* debug */ e.printStackTrace(); } 
     520    catch (Exception e) { } 
    521521  } 
    522522 
     
    829829  /** Initializes the given TIFF file. */ 
    830830  protected void initFile(String id) throws FormatException, IOException { 
     831    if (debug) { 
     832      System.out.println("calling BaseTiffReader.initFile(" + id + ")"); 
     833    } 
    831834    super.initFile(id); 
    832835    channelMinMax = null; 
  • trunk/loci/formats/in/BioRadReader.java

    r1806 r1943  
    168168  /** Initializes the given IPLab file. */ 
    169169  protected void initFile(String id) throws FormatException, IOException { 
     170    if (debug) System.out.println("calling BioRadReader.initFile(" + id + ")"); 
    170171    super.initFile(id); 
    171172    in = new RandomAccessStream(getMappedId(id)); 
     
    375376      catch (Exception exc) { 
    376377        eof = true; 
    377         if (DEBUG) exc.printStackTrace(); 
    378       } 
    379     } 
    380  
    381     if (DEBUG && DEBUG_LEVEL >= 2) { 
     378        if (debug) exc.printStackTrace(); 
     379      } 
     380    } 
     381 
     382    if (debug && DEBUG_LEVEL >= 2) { 
    382383      System.out.println(numLuts + " color table" + 
    383384        (numLuts == 1 ? "" : "s") + " present."); 
  • trunk/loci/formats/in/DeltavisionReader.java

    r1830 r1943  
    224224  /** Initializes the given Deltavision file. */ 
    225225  protected void initFile(String id) throws FormatException, IOException { 
     226    if (debug) { 
     227      System.out.println("calling DeltavisionReader.initFile(" + id + ")"); 
     228    } 
    226229    super.initFile(id); 
    227230 
  • trunk/loci/formats/in/DicomReader.java

    r1673 r1943  
    243243  /** Initializes the given DICOM file. */ 
    244244  protected void initFile(String id) throws FormatException, IOException { 
     245    if (debug) System.out.println("calling DicomReader.initFile(" + id + ")"); 
    245246    super.initFile(id); 
    246247    in = new RandomAccessStream(getMappedId(id)); 
  • trunk/loci/formats/in/EPSReader.java

    r1673 r1943  
    170170  /** Initializes the given EPS file. */ 
    171171  protected void initFile(String id) throws FormatException, IOException { 
     172    if (debug) System.out.println("calling EPSReader.initFile(" + id + ")"); 
    172173    super.initFile(id); 
    173174    in = new BufferedReader(new FileReader(getMappedId(id))); 
  • trunk/loci/formats/in/GIFReader.java

    r1718 r1943  
    219219  /** Initializes the given GIF file. */ 
    220220  protected void initFile(String id) throws FormatException, IOException { 
     221    if (debug) System.out.println("calling GIFReader.initFile(" + id + ")"); 
    221222    super.initFile(id); 
    222223 
  • trunk/loci/formats/in/GatanReader.java

    r1673 r1943  
    155155  /** Initializes the given Gatan file. */ 
    156156  protected void initFile(String id) throws FormatException, IOException { 
     157    if (debug) System.out.println("calling GatanReader.initFile(" + id + ")"); 
    157158    super.initFile(id); 
    158159    in = new RandomAccessStream(getMappedId(id)); 
  • trunk/loci/formats/in/ICSReader.java

    r1926 r1943  
    198198  /** Initializes the given ICS file. */ 
    199199  protected void initFile(String id) throws FormatException, IOException { 
     200    if (debug) System.out.println("calling ICSReader.initFile(" + id + ")"); 
    200201    super.initFile(id); 
    201202 
  • trunk/loci/formats/in/IPLabReader.java

    r1939 r1943  
    161161  /** Initializes the given IPLab file. */ 
    162162  protected void initFile(String id) throws FormatException, IOException { 
     163    if (debug) System.out.println("calling IPLabReader.initFile(" + id + ")"); 
    163164    super.initFile(id); 
    164165    in = new RandomAccessStream(getMappedId(id)); 
  • trunk/loci/formats/in/IPWReader.java

    r1806 r1943  
    193193  /** Initializes the given IPW file. */ 
    194194  protected void initFile(String id) throws FormatException, IOException { 
     195    if (debug) System.out.println("calling IPWReader.initFile(" + id + ")"); 
    195196    if (noPOI) throw new FormatException(NO_POI_MSG); 
    196197    currentId = id; 
     
    212213    catch (Throwable t) { 
    213214      noPOI = true; 
    214       if (DEBUG) t.printStackTrace(); 
     215      if (debug) t.printStackTrace(); 
    215216    } 
    216217  } 
     
    460461        } 
    461462        r.exec("dis.close()"); 
    462         if (DEBUG) { 
     463        if (debug) { 
    463464          print(depth + 1, ((byte[]) 
    464465            r.getVar("data")).length + " bytes read."); 
  • trunk/loci/formats/in/ImageIOReader.java

    r1842 r1943  
    115115  /** Initializes the given file. */ 
    116116  public void initFile(String id) throws FormatException, IOException { 
     117    if (debug) System.out.println("calling ImageIOReader.initFile(" + id + ")"); 
    117118    super.initFile(id); 
    118119 
  • trunk/loci/formats/in/ImageJReader.java

    r1898 r1943  
    139139  /** Initializes the given file. */ 
    140140  protected void initFile(String id) throws FormatException, IOException { 
     141    if (debug) System.out.println("calling ImageJReader.initFile(" + id + ")"); 
    141142    super.initFile(id); 
    142143 
  • trunk/loci/formats/in/ImarisReader.java

    r1827 r1943  
    6969  /** Initializes the given Imaris file. */ 
    7070  protected void initFile(String id) throws FormatException, IOException { 
     71    if (debug) System.out.println("calling ImarisReader.initFile(" + id + ")"); 
    7172    super.initFile(id); 
    7273    in = new RandomAccessStream(getMappedId(id)); 
  • trunk/loci/formats/in/ImarisTiffReader.java

    r1843 r1943  
    108108  /* @see BaseTiffReader#initFile(String) */ 
    109109  protected void initFile(String id) throws FormatException, IOException { 
     110    if (debug) { 
     111      System.out.println("calling ImarisTiffReader.initFile(" + id + ")"); 
     112    } 
    110113    super.initFile(id); 
    111114    super.initMetadata(); 
  • trunk/loci/formats/in/LIFReader.java

    r1836 r1943  
    189189  /** Initializes the given LIF file. */ 
    190190  protected void initFile(String id) throws FormatException, IOException { 
     191    if (debug) System.out.println("calling LIFReader.initFile(" + id + ")"); 
    191192    super.initFile(id); 
    192193    in = new RandomAccessStream(getMappedId(id)); 
  • trunk/loci/formats/in/LegacyPictReader.java

    r1673 r1943  
    107107  /** Initializes the given PICT file. */ 
    108108  protected void initFile(String id) throws FormatException, IOException { 
     109    if (debug) { 
     110      System.out.println("calling LegacyPictReader.initFile(" + id + ")"); 
     111    } 
    109112    super.initFile(id); 
    110113    sizeX[0] = openImage(id, 0).getWidth(); 
  • trunk/loci/formats/in/LegacyQTReader.java

    r1684 r1943  
    157157    throws FormatException, IOException 
    158158  { 
     159    if (debug) { 
     160      System.out.println("calling LegacyQTReader.initFile(" + id + ")"); 
     161    } 
    159162    if (tools == null) { 
    160163      tools = new LegacyQTTools(); 
  • trunk/loci/formats/in/LegacyZVIReader.java

    r1684 r1943  
    138138    } 
    139139 
    140     if (DEBUG) System.out.println("Reading image #" + no + "..."); 
     140    if (debug) System.out.println("Reading image #" + no + "..."); 
    141141 
    142142    ZVIBlock zviBlock = (ZVIBlock) blockList.elementAt(no); 
     
    154154  /** Initializes the given ZVI file. */ 
    155155  protected void initFile(String id) throws FormatException, IOException { 
     156    if (debug) { 
     157      System.out.println("calling LegacyZVIReader.initFile(" + id + ")"); 
     158    } 
    156159    super.initFile(id); 
    157160    in = new RandomAccessFile(getMappedId(id), "r"); 
     
    214217      pos = header + ZVI_MAGIC_BLOCK_1.length; 
    215218 
    216       if (DEBUG) System.err.println("Found potential image block: " + header); 
     219      if (debug) System.err.println("Found potential image block: " + header); 
    217220 
    218221      // these byte don't matter 
     
    365368      ZVIBlock zviBlock = new ZVIBlock(theZ, theC, theT, width, height, 
    366369        alwaysOne, bytesPerPixel, pixType, bitDepth, pos); 
    367       if (DEBUG) System.out.println(zviBlock); 
     370      if (debug) System.out.println(zviBlock); 
    368371 
    369372      // perform some checks on the header info 
  • trunk/loci/formats/in/LeicaReader.java

    r1926 r1943  
    221221  /** Initializes the given Leica file. */ 
    222222  protected void initFile(String id) throws FormatException, IOException { 
     223    if (debug) System.out.println("calling LeicaReader.initFile(" + id + ")"); 
    223224    String idLow = id.toLowerCase(); 
    224225    if (idLow.endsWith("tif") || idLow.endsWith("tiff")) { 
  • trunk/loci/formats/in/MNGReader.java

    r1844 r1943  
    142142  /** Initializes the given MNG file. */ 
    143143  protected void initFile(String id) throws FormatException, IOException { 
     144    if (debug) System.out.println("calling MNGReader.initFile(" + id + ")"); 
    144145    super.initFile(id); 
    145146    in = new RandomAccessStream(id); 
  • trunk/loci/formats/in/MRCReader.java

    r1806 r1943  
    124124  /** Initializes the given MRC file. */ 
    125125  public void initFile(String id) throws FormatException, IOException { 
     126    if (debug) System.out.println("calling MRCReader.initFile(" + id + ")"); 
    126127    super.initFile(id); 
    127128    in = new RandomAccessStream(getMappedId(id)); 
  • trunk/loci/formats/in/ND2Reader.java

    r1903 r1943  
    197197  /** Initializes the given ND2 file. */ 
    198198  protected void initFile(String id) throws FormatException, IOException { 
     199    if (debug) System.out.println("calling ND2Reader.initFile(" + id + ")"); 
    199200    if (noJAI) throw new FormatException(NO_JAI_MSG); 
    200201    super.initFile(id); 
  • trunk/loci/formats/in/NikonReader.java

    r1806 r1943  
    181181  /* @see BaseTiffReader#initFile(String) */ 
    182182  protected void initFile(String id) throws FormatException, IOException { 
     183    if (debug) System.out.println("calling NikonReader.initFile(" + id + ")"); 
    183184    close(); 
    184185    currentId = id; 
  • trunk/loci/formats/in/OIBReader.java

    r1942 r1943  
    254254  /** Initializes the given OIB file. */ 
    255255  protected void initFile(String id) throws FormatException, IOException { 
     256    if (debug) System.out.println("calling OIBReader.initFile(" + id + ")"); 
    256257    if (noPOI) throw new FormatException(NO_POI_MSG); 
    257258    currentId = id; 
     
    433434    catch (Throwable t) { 
    434435      noPOI = true; 
    435       if (DEBUG) t.printStackTrace(); 
     436      if (debug) t.printStackTrace(); 
    436437      initFile(id); 
    437438    } 
     
    505506      else if (isDocument) { 
    506507        r.exec("entryName = entry.getName()"); 
    507         if (DEBUG) { 
     508        if (debug) { 
    508509          print(depth + 1, "Found document: " + r.getVar("entryName")); 
    509510        } 
  • trunk/loci/formats/in/OIFReader.java

    r1939 r1943  
    223223  /** Initializes the given OIF file. */ 
    224224  protected void initFile(String id) throws FormatException, IOException { 
     225    if (debug) System.out.println("calling OIFReader.initFile(" + id + ")"); 
     226     
    225227    // check to make sure that we have the OIF file 
    226228    // if not, we need to look for it in the parent directory 
  • trunk/loci/formats/in/OMEXMLReader.java

    r1806 r1943  
    201201  /** Initializes the given OME-XML file. */ 
    202202  protected void initFile(String id) throws FormatException, IOException { 
     203    if (debug) System.out.println("calling OMEXMLReader.initFile(" + id + ")"); 
    203204    close(); 
    204205    currentId = id; 
  • trunk/loci/formats/in/OpenlabRawReader.java

    r1673 r1943  
    139139  /** Initializes the given RAW file. */ 
    140140  protected void initFile(String id) throws FormatException, IOException { 
     141    if (debug) { 
     142      System.out.println("calling OpenlabRawReader.initFile(" + id + ")"); 
     143    } 
    141144    super.initFile(id); 
    142145    in = new RandomAccessStream(getMappedId(id)); 
  • trunk/loci/formats/in/OpenlabReader.java

    r1939 r1943  
    372372  /** Initialize the given Openlab LIFF file. */ 
    373373  protected void initFile(String id) throws FormatException, IOException { 
     374    if (debug) System.out.println("calling OpenlabReader.initFile(" + id + ")"); 
    374375    super.initFile(id); 
    375376    in = new RandomAccessStream(getMappedId(id)); 
  • trunk/loci/formats/in/PerkinElmerReader.java

    r1926 r1943  
    165165  /** Initializes the given PerkinElmer file. */ 
    166166  protected void initFile(String id) throws FormatException, IOException { 
     167    if (debug) { 
     168      System.out.println("calling PerkinElmerReader.initFile(" + id + ")"); 
     169    } 
    167170    super.initFile(id); 
    168171 
  • trunk/loci/formats/in/PictReader.java

    r1718 r1943  
    180180  /** Initializes the given PICT file. */ 
    181181  protected void initFile(String id) throws FormatException, IOException { 
     182    if (debug) System.out.println("calling PictReader.initFile(" + id + ")"); 
    182183    super.initFile(id); 
    183184    in = new RandomAccessStream(getMappedId(id)); 
     
    222223    int w = DataTools.bytesToInt(stuff, 6, 2, little); 
    223224    int h = DataTools.bytesToInt(stuff, 8, 2, little); 
    224     if (DEBUG) { 
     225    if (debug) { 
    225226      System.out.println("PictReader.getDimensions: " + w + " x " + h); 
    226227    } 
     
    232233    // handles case when we call this method directly, instead of 
    233234    // through initFile(String) 
    234     if (DEBUG) System.out.println("PictReader.open"); 
     235    if (debug) System.out.println("PictReader.open"); 
    235236 
    236237    strips = new Vector(); 
     
    285286      } 
    286287 
    287       if (DEBUG) { 
     288      if (debug) { 
    288289        System.out.println("PictReader.openBytes: 8-bit data, " + width + 
    289290          " x " + height + ", length=" + data.length + "x" + data[0].length); 
     
    316317      } 
    317318 
    318       if (DEBUG) { 
     319      if (debug) { 
    319320        System.out.println("PictReader.openBytes: 24-bit data, " + width + 
    320321          " x " + height + ", length=" + data.length + "x" + data[0].length); 
     
    339340      } 
    340341 
    341       if (DEBUG) { 
     342      if (debug) { 
    342343        System.out.println("PictReader.openBytes: 32-bit data, " + width + 
    343344          " x " + height + ", length=" + data.length + "x" + data[0].length); 
     
    367368      } 
    368369 
    369       if (DEBUG) { 
     370      if (debug) { 
    370371        System.out.println("PictReader.openBytes: 16-bit data, " + 
    371372          width + " x " + height + ", length=" + data.length); 
     
    379380  /** Loop through the remainder of the file and find relevant opcodes. */ 
    380381  private boolean driveDecoder() throws FormatException { 
    381     if (DEBUG) System.out.println("PictReader.driveDecoder"); 
     382    if (debug) System.out.println("PictReader.driveDecoder"); 
    382383    int opcode; 
    383384 
     
    432433  /** Handles the opcodes in the PICT file. */ 
    433434  private boolean drivePictDecoder(int opcode) throws FormatException { 
    434     if (DEBUG) System.out.println("PictReader.drivePictDecoder"); 
     435    if (debug) System.out.println("PictReader.drivePictDecoder"); 
    435436 
    436437    switch (opcode) { 
     
    461462  /** Handles bitmap and pixmap opcodes of PICT format. */ 
    462463  private void handlePackBits(int opcode) throws FormatException { 
    463     if (DEBUG) System.out.println("PictReader.handlePackBits(" + opcode + ")"); 
     464    if (debug) System.out.println("PictReader.handlePackBits(" + opcode + ")"); 
    464465    if (opcode == PICT_9A) { 
    465466      // special case 
     
    476477  /** Extract the image data in a PICT bitmap structure. */ 
    477478  private void handleBitmap(int opcode) throws FormatException { 
    478     if (DEBUG) System.out.println("PictReader.handleBitmap(" + opcode + ")"); 
     479    if (debug) System.out.println("PictReader.handleBitmap(" + opcode + ")"); 
    479480    int row; 
    480481    byte[] buf;  // raw byte buffer for data from file 
     
    553554  /** Extracts the image data in a PICT pixmap structure. */ 
    554555  private void handlePixmap(int opcode) throws FormatException { 
    555     if (DEBUG) System.out.println("PictReader.handlePixmap(" + opcode + ")"); 
     556    if (debug) System.out.println("PictReader.handlePixmap(" + opcode + ")"); 
    556557    int pixelSize; 
    557558    int compCount; 
     
    663664    throws FormatException 
    664665  { 
    665     if (DEBUG) { 
     666    if (debug) { 
    666667      System.out.println("PictReader.handlePixmap(" + 
    667668        rBytes + ", " + pixelSize + ", " + compCount + ")"); 
     
    701702 
    702703    if (!compressed) { 
    703       if (DEBUG) { 
     704      if (debug) { 
    704705        System.out.println("Pixel data is uncompressed (pixelSize=" + 
    705706          pixelSize + ")."); 
     
    726727    } 
    727728    else { 
    728       if (DEBUG) { 
     729      if (debug) { 
    729730        System.out.println("Pixel data is compressed (pixelSize=" + 
    730731          pixelSize + "; compCount=" + compCount + ")."); 
     
    804805    throws FormatException 
    805806  { 
    806     if (DEBUG) { 
     807    if (debug) { 
    807808      System.out.println("PictReader.expandPixels(" + bitSize + ", " + 
    808809        ib.length + ", " + ob.length + ", " + outLen + ")"); 
     
    885886  /** PackBits variant that outputs an int array. */ 
    886887  private void unpackBits(byte[] ib, int[] ob) { 
    887     if (DEBUG) { 
     888    if (debug) { 
    888889      System.out.println("PictReader.unpackBits(" + ib + ", " + ob + ")"); 
    889890    } 
  • trunk/loci/formats/in/QTReader.java

    r1749 r1943  
    317317      !code.equals("jpeg") && !code.equals("mjpb") && !code.equals("rpza")) 
    318318    { 
    319       if (DEBUG) { 
     319      if (debug) { 
    320320        System.out.println("Unsupported codec (" + 
    321321          code + "); using QTJava reader"); 
     
    498498      !code.equals("jpeg") && !code.equals("mjpb") && !code.equals("rpza")) 
    499499    { 
    500       if (DEBUG) { 
     500      if (debug) { 
    501501        System.out.println("Unsupported codec (" + 
    502502          code + "); using QTJava reader"); 
     
    557557  /** Initializes the given QuickTime file. */ 
    558558  protected void initFile(String id) throws FormatException, IOException { 
     559    if (debug) System.out.println("calling QTReader.initFile(" + id + ")"); 
    559560    super.initFile(id); 
    560561    in = new RandomAccessStream(id); 
     
    723724      } 
    724725 
    725       if (DEBUG) { 
     726      if (debug) { 
    726727        System.out.println("seeking to " + offset + "; atomType=" + atomType + 
    727728          "; atomSize=" + atomSize); 
     
    874875      // if a 'udta' atom, skip ahead 4 bytes 
    875876      if (atomType.equals("udta")) offset += 4; 
    876       if (DEBUG) print(depth, atomSize, atomType, data); 
     877      if (debug) print(depth, atomSize, atomType, data); 
    877878    } 
    878879  } 
  • trunk/loci/formats/in/SDTReader.java

    r1784 r1943  
    199199  /** Initializes the given SDT file. */ 
    200200  protected void initFile(String id) throws FormatException, IOException { 
     201    if (debug) System.out.println("calling SDTReader.initFile(" + id + ")"); 
    201202    super.initFile(id); 
    202203    in = new RandomAccessStream(getMappedId(id)); 
  • trunk/loci/formats/in/SlidebookReader.java

    r1673 r1943  
    131131  /** Initializes the given Slidebook file. */ 
    132132  protected void initFile(String id) throws FormatException, IOException { 
     133    if (debug) { 
     134      System.out.println("calling SlidebookReader.initFile(" + id + ")"); 
     135    } 
    133136    super.initFile(id); 
    134137    in = new RandomAccessStream(getMappedId(id)); 
  • trunk/loci/formats/in/ZeissLSMReader.java

    r1886 r1943  
    154154  /** Initializes the given Zeiss LSM file. */ 
    155155  protected void initFile(String id) throws FormatException, IOException { 
     156    if (debug) { 
     157      System.out.println("calling ZeissLSMReader.initFile(" + id + ")"); 
     158    } 
    156159    super.initFile(id); 
    157160    channels = 0; 
  • trunk/loci/formats/in/ZeissZVIReader.java

    r1911 r1943  
    330330  /** Initializes the given ZVI file. */ 
    331331  protected void initFile(String id) throws FormatException, IOException { 
     332    if (debug) { 
     333      System.out.println("calling ZeissZVIReader.initFile(" + id + ")"); 
     334    } 
    332335 
    333336    if (noPOI || needLegacy) { 
     
    426429    catch (Throwable t) { 
    427430      needLegacy = true; 
    428       if (DEBUG) t.printStackTrace(); 
     431      if (debug) t.printStackTrace(); 
    429432      initFile(id); 
    430433    } 
     
    484487      else if (isDocument) { 
    485488        r.exec("entryName = entry.getName()"); 
    486         if (DEBUG) { 
     489        if (debug) { 
    487490          print(depth + 1, "Found document: " + r.getVar("entryName")); 
    488491        } 
Note: See TracChangeset for help on using the changeset viewer.