How come this
thread is on the JavaFX forum? I see no JavaFX code...
(BTW, how come this forum is written "Java FX"?
)
Anyway, you guessed right (although that's flush(), not Flush()!). Formatter implements the
Flushable interface which precisely requests to implement the flush() method and is succinctly described as "
[...] a destination of data that can be flushed. The flush method is invoked to write any buffered output to the underlying stream."
Formatter can use a buffered output which, as the name implies, can store part of the output in memory (in a buffer) until the buffer is full (then it is flushed, written to disk and emptied) or until the stream is closed. If you have neither (half empty buffer and you don't want to close the stream right now), you can flush the output to be sure it is written to disk.