edu.rice.cs.util
Class OutputStreamRedirector
java.lang.Object
|
+--java.io.OutputStream
|
+--edu.rice.cs.util.OutputStreamRedirector
- public abstract class OutputStreamRedirector
- extends OutputStream
Allows an output stream, such as System.out and System.err,
to be redirected to another stream.
- Version:
- $Id: OutputStreamRedirector.java,v 1.1 2002/06/27 15:55:29 csreis Exp $
Method Summary |
abstract void |
print(String s)
Implement this method to print to the appropriate destination. |
void |
write(byte[] b)
|
void |
write(byte[] b,
int off,
int len)
|
void |
write(int b)
|
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
OutputStreamRedirector
public OutputStreamRedirector()
write
public final void write(int b)
throws IOException
- Overrides:
write
in class OutputStream
write
public final void write(byte[] b)
throws IOException
- Overrides:
write
in class OutputStream
write
public final void write(byte[] b,
int off,
int len)
throws IOException
- Overrides:
write
in class OutputStream
print
public abstract void print(String s)
- Implement this method to print to the appropriate destination.
- Parameters:
s
- The string to be printed to the new destination.