Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / December 2005

Tip: Looking for answers? Try searching our database.

buffers

Thread view: 
raghu - 18 Dec 2005 17:27 GMT
what is the default buffersize of a bufferclass?

thanks in advance
Malte - 18 Dec 2005 17:49 GMT
> what is the default buffersize of a bufferclass?
>
> thanks in advance

Didn't your course come with a textbook?
Roedy Green - 19 Dec 2005 01:00 GMT
On Sun, 18 Dec 2005 18:49:42 +0100, Malte
<You_can_spam_me_here@nmalte.dk> wrote, quoted or indirectly quoted
someone who said :

>> what is the default buffersize of a bufferclass?
I think what you meant is a BufferedInputStream or BufferedReader.

If you don't specify the buffer size, you will get 8192.

You can answer questions like this not covered in the Javadoc by
looking in src.zip at the source code.

look in BufferedReader for
private static int defaultCharBufferSize = 8192;

Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.

q_q_anonymous@yahoo.co.uk - 19 Dec 2005 16:27 GMT
> > what is the default buffersize of a bufferclass?
> >
> > thanks in advance
> >
> Didn't your course come with a textbook?

well if you think like that, then why don't/didn't  you recommend a
good textbook to him that has the answer?
Chris Smith - 18 Dec 2005 17:52 GMT
> what is the default buffersize of a bufferclass?

Your question doesn't make sense.  What do you mean by "bufferclass"?  
There is no such commonly used term in Java.

Signature

www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation

q_q_anonymous@yahoo.co.uk - 18 Dec 2005 18:21 GMT
> > what is the default buffersize of a bufferclass?
>
> Your question doesn't make sense.  What do you mean by "bufferclass"?
> There is no such commonly used term in Java.

perhaps he was trying to ask about a 'default' number of bytes read
when you do a
bufferedReader.read(char[] cbuf,.............);
Chris Smith - 18 Dec 2005 18:28 GMT
> perhaps he was trying to ask about a 'default' number of bytes read
> when you do a
> bufferedReader.read(char[] cbuf,.............);

In which case there is no default.  The number of bytes read is the
lesser of the number of bytes that are available without blocking (when
that number is non-zero), and the size of the array.

Signature

www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.