| java.io.PrintStream com.martiansoftware.nailgun.ThreadLocalPrintStream
ThreadLocalPrintStream | class ThreadLocalPrintStream extends PrintStream (Code) | | The class name is pretty descriptive. This creates a PrintStream
much like a FilterOutputStream, but with the wrapped PrintStream
being local to the current Thread. By setting System.out to a
ThreadLocalPrintStream, different Threads can write to different
PrintStreams simply by using System.out. Of course, the init()
method must be called by the Thread that wishes to use the
wrapped stream.
author: Marty Lamb |
ThreadLocalPrintStream | public ThreadLocalPrintStream(PrintStream defaultPrintStream)(Code) | | Creates a new InheritedThreadLocalPrintStream
Parameters: defaultPrintStream - the PrintStream that will be used if thecurrent thread has not called init() |
getPrintStream | PrintStream getPrintStream()(Code) | | Returns this thread's PrintStream
this thread's PrintStream |
init | void init(PrintStream streamForCurrentThread)(Code) | | Sets the PrintStream for the current thread
Parameters: streamForCurrentThread - the PrintStream for the current thread |
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)
|
|
|