MCPcopy Create free account
hub / github.com/davidgiven/luje / flush

Method flush

lib/java/io/PrintStream.java:262–273  ·  view source on GitHub ↗

Ensures that all pending data is sent out to the target stream. It also flushes the target stream. If an I/O error occurs, this stream's error state is set to true.

()

Source from the content-addressed store, hash-verified

260 * state is set to {@code true}.
261 */
262 @Override
263 public synchronized void flush() {
264 if (out != null) {
265 try {
266 out.flush();
267 return;
268 } catch (IOException e) {
269 // Ignored, fall through to setError
270 }
271 }
272 setError();
273 }
274
275 /**
276 * Writes a string formatted by an intermediate {@code Formatter} to the

Callers 3

checkErrorMethod · 0.95
closeMethod · 0.95
writeMethod · 0.95

Calls 2

setErrorMethod · 0.95
flushMethod · 0.65

Tested by

no test coverage detected