| java.io.PrintStream org.apache.tomcat.util.log.SystemLogHandler
SystemLogHandler | public class SystemLogHandler extends PrintStream (Code) | | This helper class may be used to do sophisticated redirection of
System.out and System.err on a per Thread basis.
A stack is implemented per Thread so that nested startCapture
and stopCapture can be used.
author: Remy Maucherat author: Glenn L. Nielsen |
reuse | protected static Stack reuse(Code) | | Spare CaptureLog ready for reuse.
|
SystemLogHandler | public SystemLogHandler(PrintStream wrapped)(Code) | | Construct the handler to capture the output of the given steam.
|
checkError | public boolean checkError()(Code) | | |
close | public void close()(Code) | | |
findStream | protected PrintStream findStream()(Code) | | Find PrintStream to which the output must be written to.
|
flush | public void flush()(Code) | | |
print | public void print(boolean b)(Code) | | |
print | public void print(char c)(Code) | | |
print | public void print(int i)(Code) | | |
print | public void print(long l)(Code) | | |
print | public void print(float f)(Code) | | |
print | public void print(double d)(Code) | | |
print | public void print(char[] s)(Code) | | |
println | public void println()(Code) | | |
println | public void println(boolean x)(Code) | | |
println | public void println(char x)(Code) | | |
println | public void println(int x)(Code) | | |
println | public void println(long x)(Code) | | |
println | public void println(float x)(Code) | | |
println | public void println(double x)(Code) | | |
println | public void println(char[] x)(Code) | | |
setError | protected void setError()(Code) | | |
startCapture | public static void startCapture()(Code) | | Start capturing thread's output.
|
stopCapture | public static String stopCapture()(Code) | | Stop capturing thread's output and return captured data as a String.
|
write | public void write(int b)(Code) | | |
write | public void write(byte[] buf, int off, int len)(Code) | | |
Methods inherited from java.io.PrintStream | public PrintStream append(CharSequence csq)(Code)(Java Doc) public PrintStream append(CharSequence csq, int start, int end)(Code)(Java Doc) public PrintStream append(char c)(Code)(Java Doc) public boolean checkError()(Code)(Java Doc) protected void clearError()(Code)(Java Doc) public void close()(Code)(Java Doc) public void flush()(Code)(Java Doc) public PrintStream format(String format, Object... args)(Code)(Java Doc) public PrintStream format(Locale l, String format, Object... args)(Code)(Java Doc) public void print(boolean b)(Code)(Java Doc) public void print(char c)(Code)(Java Doc) public void print(int i)(Code)(Java Doc) public void print(long l)(Code)(Java Doc) public void print(float f)(Code)(Java Doc) public void print(double d)(Code)(Java Doc) public void print(char s)(Code)(Java Doc) public void print(String s)(Code)(Java Doc) public void print(Object obj)(Code)(Java Doc) public PrintStream printf(String format, Object... args)(Code)(Java Doc) public PrintStream printf(Locale l, String format, Object... args)(Code)(Java Doc) public void println()(Code)(Java Doc) public void println(boolean x)(Code)(Java Doc) public void println(char x)(Code)(Java Doc) public void println(int x)(Code)(Java Doc) public void println(long x)(Code)(Java Doc) public void println(float x)(Code)(Java Doc) public void println(double x)(Code)(Java Doc) public void println(char x)(Code)(Java Doc) public void println(String x)(Code)(Java Doc) public void println(Object x)(Code)(Java Doc) protected void setError()(Code)(Java Doc) public void write(int b)(Code)(Java Doc) public void write(byte buf, int off, int len)(Code)(Java Doc)
|
|
|