Why bufferedreader is used in java?

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?
Why XML?, Why XML is used for?
Javah
Why C++ is not used in machine learning?
BufferedReader
Why are MySQL Routines and Views not used with PHP?
Javap Tool application
Java bufferedreader
Artifacts of javax
Javah -  Header File Generator
BufferedReader in Java
What is the use of BufferedReader in Java program?
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
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
Java IO BufferedReader
convert it to BufferedReader class
BufferedReader in java
Maven dependency for com.gooddata - gooddata-http-client version 1.0.0+java7 is released. Learn to use gooddata-http-client version 1.0.0+java7 in Maven based Java projects
Write a program that replaces a, e, i, o, u in Java2

Ads