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, write
public PrintWriter_flushing(OutputStream out)
public void print(String s)
print
in class PrintWriter
public void println(String s)
println
in class PrintWriter
see also the complete user documentation .