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?
Java2
Advertisements
why get method is used?
Javah
Why XML?, Why XML is used for?
BufferedReader
Why C++ is not used in machine learning?
Why are MySQL Routines and Views not used with PHP?
Javap Tool application
Java bufferedreader
Javah -  Header File Generator
Artifacts of javax
What is the use of BufferedReader in Java program?
BufferedReader in Java
Read bufferedreader
ModuleNotFoundError: No module named 'javax'
ModuleNotFoundError: No module named 'javax'
About BufferedReader
Convert InputStream to BufferedReader
Javac -source KeyTest.java
Version of javax>javaee-api dependency
Scanner vs. BufferedReader
Java IO BufferedReader
ModuleNotFoundError: No module named 'javac-parser'
ModuleNotFoundError: No module named 'javac-parser'
Version of javax>javaee-endorsed-api dependency
Version of javax>javaee-web-api dependency
convert it to BufferedReader class
BufferedReader in java
Why NSMutableDictionary
Write a program that replaces a, e, i, o, u in Java2

Ads