1 17 18 package org.apache.james.util; 19 20 import java.io.IOException ; 21 import java.io.InputStream ; 22 23 26 public class DebugInputStream extends InputStream { 27 28 31 InputStream in = null; 32 33 38 public DebugInputStream(InputStream in) { 39 this.in = in; 40 } 41 42 48 public int read() throws IOException { 49 int b = in.read(); 50 System.err.write(b); 51 return b; 52 } 53 54 59 public void close() throws IOException { 60 in.close(); 61 } 62 } 63 | Popular Tags |