| java.io.PrintStream org.tp23.gui.widget.JTextAreaPrintStream
JTextAreaPrintStream | public class JTextAreaPrintStream extends PrintStream (Code) | | This subclass of PrintStream is designed to be compatible with System.out and System.err but it provides
its own functionality and does not borrow from PrintStream. All methods are overridden. The calls to each method
behave as expected with the exception of flush() which appears to insert a new line for each call. flush() sends
the current line to the JTextArea with a call to JTextArea.append(String) which adds a
line in the buffer.
author: Paul Hinds version: 1.0 |
Method Summary | |
public synchronized boolean | checkError() | public void | close() | public synchronized void | flush() | public synchronized void | print(Object obj) | public synchronized void | print(String s) | public synchronized void | print(boolean b) | public synchronized void | print(char c) | public synchronized void | print(char[] s) | public synchronized void | print(double d) | public synchronized void | print(float f) | public synchronized void | print(int i) | public synchronized void | print(long l) | public synchronized void | println() | public synchronized void | println(Object x) | public synchronized void | println(String x) | public synchronized void | println(boolean x) | public synchronized void | println(char x) | public synchronized void | println(char[] x) | public synchronized void | println(double x) | public synchronized void | println(float x) | public synchronized void | println(int x) | public synchronized void | println(long x) | protected void | setError() | public synchronized void | write(byte[] b) | public synchronized void | write(byte[] b, int off, int len) | public synchronized void | write(int c) |
checkError | public synchronized boolean checkError()(Code) | | |
close | public void close()(Code) | | The stream can not be closed
|
flush | public synchronized void flush()(Code) | | |
print | public synchronized void print(boolean b)(Code) | | |
print | public synchronized void print(char c)(Code) | | |
print | public synchronized void print(char[] s)(Code) | | |
print | public synchronized void print(double d)(Code) | | |
print | public synchronized void print(float f)(Code) | | |
print | public synchronized void print(int i)(Code) | | |
print | public synchronized void print(long l)(Code) | | |
println | public synchronized void println()(Code) | | |
println | public synchronized void println(boolean x)(Code) | | |
println | public synchronized void println(char x)(Code) | | |
println | public synchronized void println(char[] x)(Code) | | |
println | public synchronized void println(double x)(Code) | | |
println | public synchronized void println(float x)(Code) | | |
println | public synchronized void println(int x)(Code) | | |
println | public synchronized void println(long x)(Code) | | |
setError | protected void setError()(Code) | | |
write | public synchronized void write(byte[] b)(Code) | | |
write | public synchronized void write(byte[] b, int off, int len)(Code) | | |
write | public synchronized void write(int c)(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)
|
|
|