public class PrintWriter_flushing extends PrintWriter
PrintWriter.flush() strategy is not always "fast enough" for
debugging purposes. Therefore this class patches the
PrintWriter.print(String) and
PrintWriter.println(String) methods to call flush()
immediately and "hard" as soon as theri output is delivered.
out| Constructor and Description |
|---|
PrintWriter_flushing(OutputStream out) |
| Modifier and Type | Method and Description |
|---|---|
void |
print(String s) |
void |
println(String s) |
append, append, append, checkError, clearError, close, flush, format, format, print, print, print, print, print, print, print, print, printf, printf, println, println, println, println, println, println, println, println, println, setError, write, write, write, write, writepublic PrintWriter_flushing(OutputStream out)
public void print(String s)
print in class PrintWriterpublic void println(String s)
println in class PrintWritersee also the complete user documentation .