The flush method of the Response class writes any output that has been sent to a buffer. This method is inherited from java.io.OutputStream.
public void flush() throws IOException;