Changeset 4045


Ignore:
Timestamp:
05/15/08 11:34:38 (12 years ago)
Author:
curtis
Message:

Remove standalone OutputFilter class in favor of anonymous inner class.

Location:
trunk/loci/formats
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/formats/in/ImarisHDFReader.java

    r3997 r4045  
    8989    blockCheckLen = 8; 
    9090    suffixSufficient = false; 
    91     // NetCDF prints a fair number of warning messages to stdout - we need to 
    92     // filter these out so that they don't interfere with omebf. 
    93     OutputFilter out = new OutputFilter(System.out); 
     91 
     92    // HACK - NetCDF prints a fair number of warning messages to stdout 
     93    // we need to filter these out so that they don't interfere with omebf 
     94    PrintStream out = new PrintStream(System.out) { 
     95      public void print(String s) { 
     96        if (s == null || !s.trim().startsWith("WARN:")) super.print(s); 
     97      } 
     98      public void println(String s) { 
     99        if (s == null || !s.trim().startsWith("WARN:")) super.println(s); 
     100      } 
     101    }; 
    94102    System.setOut(out); 
    95103  } 
Note: See TracChangeset for help on using the changeset viewer.