Class TeePrintStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
java.io.PrintStream
org.apache.uima.test.junit_extension.TeePrintStream
- All Implemented Interfaces:
Closeable
,Flushable
,Appendable
,AutoCloseable
TeePrintStream duplicates a PrintStream.
-
Field Summary
Fields inherited from class java.io.FilterOutputStream
out
-
Constructor Summary
ConstructorDescriptionTeePrintStream
(PrintStream original, PrintStream teeStream) Initialize the two print streams. -
Method Summary
Modifier and TypeMethodDescriptionboolean
void
close()
void
flush()
void
print
(boolean b) void
print
(char c) void
print
(char[] s) void
print
(double d) void
print
(float f) void
print
(int i) void
print
(long l) void
void
void
println()
void
println
(boolean x) void
println
(char x) void
println
(char[] x) void
println
(double x) void
println
(float x) void
println
(int x) void
println
(long x) void
void
void
write
(byte[] buf, int off, int len) void
write
(int b) Methods inherited from class java.io.PrintStream
append, append, append, clearError, format, format, printf, printf, setError, write, writeBytes
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
TeePrintStream
Initialize the two print streams.- Parameters:
original
- original streamteeStream
- dublicated stream
-
-
Method Details
-
checkError
public boolean checkError()- Overrides:
checkError
in classPrintStream
- See Also:
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classPrintStream
- See Also:
-
flush
public void flush()- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classPrintStream
- See Also:
-
print
public void print(boolean b) - Overrides:
print
in classPrintStream
- See Also:
-
print
public void print(char c) - Overrides:
print
in classPrintStream
- See Also:
-
print
public void print(char[] s) - Overrides:
print
in classPrintStream
- See Also:
-
print
public void print(double d) - Overrides:
print
in classPrintStream
- See Also:
-
print
public void print(float f) - Overrides:
print
in classPrintStream
- See Also:
-
print
public void print(int i) - Overrides:
print
in classPrintStream
- See Also:
-
print
public void print(long l) - Overrides:
print
in classPrintStream
- See Also:
-
print
- Overrides:
print
in classPrintStream
- See Also:
-
print
- Overrides:
print
in classPrintStream
- See Also:
-
println
public void println()- Overrides:
println
in classPrintStream
- See Also:
-
println
public void println(boolean x) - Overrides:
println
in classPrintStream
- See Also:
-
println
public void println(char x) - Overrides:
println
in classPrintStream
- See Also:
-
println
public void println(char[] x) - Overrides:
println
in classPrintStream
- See Also:
-
println
public void println(double x) - Overrides:
println
in classPrintStream
- See Also:
-
println
public void println(float x) - Overrides:
println
in classPrintStream
- See Also:
-
println
public void println(int x) - Overrides:
println
in classPrintStream
- See Also:
-
println
public void println(long x) - Overrides:
println
in classPrintStream
- See Also:
-
println
- Overrides:
println
in classPrintStream
- See Also:
-
println
- Overrides:
println
in classPrintStream
- See Also:
-
write
public void write(byte[] buf, int off, int len) - Overrides:
write
in classPrintStream
- See Also:
-
write
public void write(int b) - Overrides:
write
in classPrintStream
- See Also:
-