org.apache.james.util
Class DebugInputStream
java.lang.Object
|
+--java.io.InputStream
|
+--org.apache.james.util.DebugInputStream
- public class DebugInputStream
- extends InputStream
Reads data off a stream, printing every byte read to System.err.
Method Summary |
void |
close()
Close the stream |
int |
read()
Read a byte off the stream |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DebugInputStream
public DebugInputStream(InputStream in)
- Constructor that takes an InputStream to be wrapped.
- Parameters:
in
- the InputStream to be wrapped
read
public int read()
throws IOException
- Read a byte off the stream
- Specified by:
read
in class InputStream
- Returns:
- the byte read off the stream
- Throws:
IOException
- if an exception is encountered when reading
close
public void close()
throws IOException
- Close the stream
- Overrides:
close
in class InputStream
- Throws:
IOException
- if an exception is encountered when closing
"Copyright © 1999-2002 Apache Jakarta Project. All Rights Reserved."