473,602 Members | 2,846 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

BufferedReader and InputStreamRead er

kaleeswaran
132 New Member
what is difference between -BufferedReader and InputStreamRead er..
which one is efficent?..
Mar 28 '07 #1
1 6429
r035198x
13,262 MVP
what is difference between -BufferedReader and InputStreamRead er..
which one is efficent?..
The buffered reader buffers data first before sending. The InputStreamRead er will therefore be faster but the BufferedReader helps to make the reading of data cleaner.
Mar 28 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
15611
by: Dr.Kadzija | last post by:
i have a client-server application. client and server should communicate via tcp sockets. ok, so i use Sockets, PrintWriter and BufferedReader. the problem is that: both client and server will send each other multiple lines (using PrintWriter.println()) at a time, and i don't know how many lines each of them will send. this wouldn't be a problem if a sender could end his turn with a pre-defined character or string (e.g. "\n", "bye" or...
1
4725
by: Morten | last post by:
Hi. I have a file using \n as line-separator. There are also occurrences of \r in the file, but I don't want the BufferedReader.readLine() to consider those as EOL. Apart from stripping all \r from the file before processing it, what good options are there? Do I have to inspect the data char-by-char, or is there a better way? Thanks,
8
1312
JavaStudent07
by: JavaStudent07 | last post by:
I had an assignment, on the command prompt, enter a filename of a previously formed program and print it out with numbered lines IE* 1 public ********* 2 { 3 Code 4 } ETC.
6
2276
crystal2005
by: crystal2005 | last post by:
Hello guys, I'm a beginner in Java application programming. I started to write a Java application in which link to MS Access database. I encountered a problem in deletion function. E.g. I would like to delete one record in database, it always shows "record not found" in my program, even if the data has been deleted. I tried to used function for each choices. But the compiler showed that we can't used function in static void. Is there...
5
6459
by: angelotti | last post by:
Hi everyone , i have the following problem , i read data from another application that i started through the runtime.exec() in my Java class. I need to periodically check if there is any data sent from it but when i try to BufferedReader.read() from the stream and the stream is empty the java app blocks ,supposably waiting for either the child process to end or for any data to be sent.... Both scenarios does not work for me and so can...
1
1630
by: stmfc | last post by:
is it possible to read values from Standard input without using InputStreamReader ?
2
5710
by: jyohere | last post by:
I want to know which one will be faster randomAccessFile or Bufferedeader. I am reading a file about 18 MB. For that using randomAccessFile i will read from the beginning of the file the first time and i will get the position of file pointer depending on the line's data and after that i will start reading from the position of file pointer. this will happen for each call of one method that i wrote..... initially i used BufferedReader but it was...
1
2234
by: sassoon12 | last post by:
hi. Is it possible to use bufferedreader in an applet? if so where am i going wrong here ? im getting the following error: E:\CIS26\Hw1App.java:23: unreported exception java.io.IOException; must be caught or declared to be thrown. String s = keyboard.readLine (); I tried writing "throws exception" after declaring paint, but then it compiles, but when it runs it gives the error: "Exception in thread "main" java.lang.NoSuchMethodError: main...
11
3379
by: brendanmcdonagh | last post by:
Hi all, I'm struggling with a challenge on new learnings about reading and writing from a txt file. Now I have just learnt about the Scanner class and i can usedelimiter (",") to create tokens. But what if the txt file has a heading before each token on the first line, how do you check that what you want it to say and what it does say are true and therefore go on to next line which are where the tokens are. I do admit this is homework but...
0
7993
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8401
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8404
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8268
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6730
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5440
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3900
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
3944
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1510
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.