Why bufferedreader is used in java?

Why bufferedreader is used in java?


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.


View Answers

February 8, 2013 at 11:56 PM


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


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.


Related Tutorials/Questions & Answers:
Why bufferedreader is used in java?
difference between java5 and java6 - Java Beginners
why get method is used?
Why hibernate is used?
Why XML?, Why XML is used for?
about java1
Why C++ is not used in machine learning?
Why are MySQL Routines and Views not used with PHP?
About Java2
javaa swings - IDE Questions
Javap Tool application
Javah -  Header File Generator
Java bufferedreader
BufferedReader in Java
Artifacts of javax
Read bufferedreader
What is the use of BufferedReader in Java program?
About BufferedReader
ModuleNotFoundError: No module named 'javax'
ModuleNotFoundError: No module named 'javax'
Javac -source KeyTest.java
Convert InputStream to BufferedReader
Bufferedreader example
Scanner vs. BufferedReader
javax - JSP-Servlet
ModuleNotFoundError: No module named 'javac-parser'
ModuleNotFoundError: No module named 'javac-parser'
Version of javax>javaee-api dependency
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
javax servlet error - JSP-Servlet
convert it to BufferedReader class
Java IO BufferedReader
BufferedReader in java
javab - Java Beginners
javas - JSP-Servlet
javac complier not found - JSP-Servlet
Write a program that replaces a, e, i, o, u in Java2
Why NSMutableDictionary
Version of javax>javaee-endorsed-api dependency
Version of javax>javaee-web-api dependency
what is the default buffer size for bufferedreader
Version of plexus>plexus-compiler-javac dependency
Version of com.pushtorefresh>javac-warning-annotation dependency
How to Read a file line by line using BufferedReader?
java.lang.NoClassDefFoundError: javax/transaction/UserTransaction????? - Struts
Why spring?
Maven Repository/Dependency: javax | wsdl