buffers

C

Chris Smith

raghu said:
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.

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

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
 
Q

q_q_anonymous

Chris said:
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,.............);
 
C

Chris Smith

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.

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

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
 
R

Roedy Green

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;
 
Q

q_q_anonymous

Malte said:
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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

buffers and memoryviews 0
Buffers not Serializable in Java? 3
Pcap network buffer 0
fstream Buffers 26
snprintf and snprintf_s 7
File position and buffers 21
Arrays vs Buffers 8
Buffers 5

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top