org.apache.jasper.compiler
protected static class AntCompiler.SystemLogHandler extends PrintStream
Field Summary | |
---|---|
protected static ThreadLocal | data
Thread <-> ByteArrayOutputStream associations. |
protected static ThreadLocal | streams
Thread <-> PrintStream associations. |
protected PrintStream | wrapped
Wrapped PrintStream. |
Constructor Summary | |
---|---|
SystemLogHandler(PrintStream wrapped)
Construct the handler to capture the output of the given steam. |
Method Summary | |
---|---|
boolean | checkError() |
void | close() |
protected PrintStream | findStream()
Find PrintStream to which the output must be written to. |
void | flush() |
PrintStream | getWrapped() |
void | print(boolean b) |
void | print(char c) |
void | print(int i) |
void | print(long l) |
void | print(float f) |
void | print(double d) |
void | print(char[] s) |
void | print(String s) |
void | print(Object obj) |
void | println() |
void | println(boolean x) |
void | println(char x) |
void | println(int x) |
void | println(long x) |
void | println(float x) |
void | println(double x) |
void | println(char[] x) |
void | println(String x) |
void | println(Object x) |
protected void | setError() |
static void | setThread()
Start capturing thread's output. |
static String | unsetThread()
Stop capturing thread's output and return captured data as a String. |
void | write(int b) |
void | write(byte[] b) |
void | write(byte[] buf, int off, int len) |