Why bufferedreader is used in java?

Ads
 

Why bufferedreader is used in java?

Hi,

What is the use of BufferedReader class in Java? why bufferedreader is used in java?

It will be great if anyone can give me the example code of BufferedReader class in java.

Thanks

View Answers

February 8, 2013 at 11:56 PM

Hello,

The BufferedReader class is present in the java.io package:

java.io.BufferedReader

This class is used for reading the text-input stream in Java efficiently. This java.io.BufferedReader class buffers the characters which results in the high efficiency of the application.

The java.io.BufferedReader class can be used to read the large text files ( ranging in many GB's).

The java.io.BufferedReader class is very flexible and it allows the developers to specify the size of buffer. The default buffer size of this class is 8192 chars. Which can be increased also. This buffer size is sufficient in general programming.

You can see the example at the tutorial Java Read File Line by Line - Java Tutorial.

Thanks

Ads









Related Tutorials/Questions & Answers:
Why bufferedreader is used in java?
difference between java5 and java6 - Java Beginners
Advertisements
Java2
why get method is used?
Why hibernate is used?
Javah
BufferedReader
Why XML?, Why XML is used for?
about java1
About Java2
Why are MySQL Routines and Views not used with PHP?
javaa swings - IDE Questions
Javap Tool application
Javah -  Header File Generator
Java bufferedreader
Artifacts of javax
BufferedReader in Java
Read bufferedreader
What is the use of BufferedReader in Java program?
About BufferedReader
javax - JSP-Servlet
Javac -source KeyTest.java
Version of javax>javaee-api dependency
Convert InputStream to BufferedReader
javax servlet error - JSP-Servlet
Scanner vs. BufferedReader
Bufferedreader example
Java IO BufferedReader
Version of javax>javaee-endorsed-api dependency
Version of javax>javaee-web-api dependency
convert it to BufferedReader class

Ads