Clears all buffers for this Writer object and causes any buffered data to be written to the underlying device.
public void flush()
The default method is empty, but a subclass can override this method to provide the appropriate functionality.