Changeset 1828


Ignore:
Timestamp:
11/20/06 13:56:37 (13 years ago)
Author:
curtis
Message:

Use better log messages for Apache; add Ilya to credits.

File:
1 edited

Legend:

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

    r1823 r1828  
    3737 * 
    3838 * @author Curtis Rueden ctrueden at wisc.edu 
     39 * @author Ilya Goldberg igg at nih.gov 
    3940 */ 
    4041public class OmeisImporter { 
     
    209210          if (DEBUG) { 
    210211            log("Processing " + imageCount + " planes (sizeZ=" + sizeZ + 
    211               ", sizeC=" + sizeC + ", sizeT=" + sizeT + "): ", false); 
     212              ", sizeC=" + sizeC + ", sizeT=" + sizeT + "): "); 
    212213          } 
    213214          for (int j=0; j<imageCount; j++) { 
    214             if (DEBUG) log(".", false); 
     215            if (DEBUG) log("  Reading plane #" + j); 
    215216            byte[] plane = reader.openBytes(id, j); 
    216217            if (swap && bytesPerPixel > 1 && !isFloat) { // swap endianness 
     
    230231          out.close(); 
    231232          reader.close(); 
    232           if (DEBUG) log(" [done]"); 
     233          if (DEBUG) log("[done]"); 
    233234 
    234235          // tell OMEIS we're done 
     
    455456  } 
    456457 
    457   private void log(String msg) { log(msg, true); } 
    458  
    459   private void log(String msg, boolean nl) { 
    460     if (nl) System.err.println(msg); 
    461     else System.err.print(msg); 
     458  private void log(String msg) { 
     459    System.err.println(msg); 
    462460  } 
    463461 
Note: See TracChangeset for help on using the changeset viewer.