The getBuffered method of the Response class returns a boolean indicating whether the response is being sent to a buffer.
public boolean getBuffered();