File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Buffer size Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Buffer size" Watch "Buffer size" New topic

Buffer size

Celina Joseph

Joined: Aug 23, 2001
Posts: 24
Hi everybody,
I have a servlet. Its buffer size (I used the API - getBufferSize to get the buffer size of the response stream )is 1024 KB.
I filled it up with data more than 1024KB and it still does not give any error (I was expecting some buffer overflow errors) and displays the data properly on the browser.
Is it normal ?
Shubhrajit Chatterjee
Ranch Hand

Joined: Aug 23, 2001
Posts: 356
Buffer holds the data temporarily before it is flushed to the ouputstream ( IN this case the browser) .. so when you have more than 1024 KB of data, some data is sent to the browser...
This is perfectly normal behavior

I agree. Here's the link:
subject: Buffer size
It's not a secret anymore!