abbot.util
Class Tee
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
java.io.PrintStream
abbot.util.Tee
- All Implemented Interfaces:
- Closeable, Flushable, Appendable
public class Tee
- extends PrintStream
Splits a PrintStream
into two targets. Useful for making
a copy of stream go somewhere else, such as redirecting stdout/stderr
to a file.
Tee
public Tee(PrintStream p1,
PrintStream p2)
write
public void write(int b)
- Overrides:
write
in class PrintStream
write
public void write(byte[] b,
int o,
int l)
- Overrides:
write
in class PrintStream
flush
public void flush()
- Specified by:
flush
in interface Flushable
- Overrides:
flush
in class PrintStream
close
public void close()
- Specified by:
close
in interface Closeable
- Overrides:
close
in class PrintStream
print
public void print(boolean b)
- Overrides:
print
in class PrintStream
print
public void print(char b)
- Overrides:
print
in class PrintStream
print
public void print(int b)
- Overrides:
print
in class PrintStream
print
public void print(long b)
- Overrides:
print
in class PrintStream
print
public void print(float b)
- Overrides:
print
in class PrintStream
print
public void print(double b)
- Overrides:
print
in class PrintStream
print
public void print(char[] b)
- Overrides:
print
in class PrintStream
print
public void print(String b)
- Overrides:
print
in class PrintStream
print
public void print(Object b)
- Overrides:
print
in class PrintStream
println
public void println()
- Overrides:
println
in class PrintStream
println
public void println(boolean x)
- Overrides:
println
in class PrintStream
println
public void println(char x)
- Overrides:
println
in class PrintStream
println
public void println(int x)
- Overrides:
println
in class PrintStream
println
public void println(long x)
- Overrides:
println
in class PrintStream
println
public void println(float x)
- Overrides:
println
in class PrintStream
println
public void println(double x)
- Overrides:
println
in class PrintStream
println
public void println(byte[] x)
println
public void println(String x)
- Overrides:
println
in class PrintStream
println
public void println(Object x)
- Overrides:
println
in class PrintStream
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2002-2008 Timothy Wall. All Rights Reserved.
Abbot is hosted on