*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Buffer size" Watch "Buffer size" New topic
Author

Buffer size

Celina Joseph
Greenhorn

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


Shubhrajit
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Buffer size
 
Similar Threads
JSP buffer size issue
IllegalStateException
How to redefine internal buffer size?
inflating UTF-8 ant Latin-1 compressed text
Buffer Size question