This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Servlets and the fly likes Buffer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "Buffer" Watch "Buffer" New topic
Author

Buffer

Nila dhan
Ranch Hand

Joined: Sep 15, 2005
Posts: 160
is there any way to know if the buffer is filled?
Sunny Kumar
Ranch Hand

Joined: Oct 27, 2005
Posts: 57
Assuming that you want this so that you can know the buffer status (i.e send to client or not) I am not sure that there's a method for querying if the buffer is full, but you can use isCommitted() to check if the buffer contents have been flushed to client because that will,in anyways, happen when the buffer is full.
 
GeeCON Prague 2014
 
subject: Buffer