473,320 Members | 1,990 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Buffered Reader

All help gratefully recieved. What exactly is a buffered reader? We know it reads
bytes from a zip.file but can it also read input that has been put into the terminal-window? We are using BlueJ & it is very confusing............
Feb 2 '07 #1
3 1342
r035198x
13,262 8TB
All help gratefully recieved. What exactly is a buffered reader? We know it reads

bytes from a zip.file but can it also read input that has been put into the terminal-window? We are using BlueJ & it is very confusing............


Google \"BufferedReader java\" and open the first page that is hit there.
Feb 2 '07 #2
I'm reading lots of bytes over bluetooth and it seems that my decoding part of my code is slower than the bluetooth receiving speed.

will buffered reader help in preventing overruns on my situation?

how would i implement using this read statement?

if((len = _port.read(_receiveBuffer, 0, length == -1 ? _receiveBuffer.length : length)) != 0)

thanks...
Oct 27 '07 #3
JosAH
11,448 Expert 8TB
A BufferedReader by itself has nothing to do with ZipInputStreams, as a matter
of fact, the two don't like each other one bit: a ZipInputStream reads binary data
while a Reader (such as a BufferedReader) does character translations as in
UTF-8 etc. Perhaps you want to use a BufferedInputStream instead?

kind regards,

Jos
Oct 28 '07 #4

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

Similar topics

7
by: Steven T. Hatton | last post by:
I haven't looked very closely, but from what I'm seeing, it looks like there are no buffered I/O streams in the Standard Library. There are stream buffers, but not buffered streams. I don't have...
9
by: kernelxu | last post by:
hi,everybody. I calling function setbuf() to change the characteristic of standsrd input buffer. some fragment of the progrem is: (DEV-C++2.9.9.2) #include <stdio.h> #include <stdlib.h> int...
5
by: Heriberto | last post by:
Hi, I'd like to know how to work with excel using C#. I known how to do it in Delphi but I new in C#. I just want a small exemple. And if anyone knows if there are diferrence working with excel...
4
by: pank7 | last post by:
hi everyone, I have a program here to test the file IO(actually output) with buffer turned on and off. What I want to see is that there will be obvious differece in time. Here I have an input...
1
by: Tom Bianchi | last post by:
Hi, is it possible to make a SplitContainer double buffered ? Deriving and setting the style in the constructor doesn't seem to work, maybe because it is composed by two normal Panels... ...
2
by: Karl | last post by:
Hey everyone! I've got a quick question on whether std::ifstream is buffered or not. The reason is that I have a homework assignment that requires me to benchmark copying files using different...
15
by: jyohere | last post by:
I am using buffered Reader.....some problem arises ...dnt know why....am using the following code to read a big file about 8MB. path = "/home/t.txt" File file=new File(path); FileReader...
1
by: LiorO | last post by:
Hi, I need to implement a high performance file copying. The File.Copy method in .NET is fast enough however I need to control the speed since it should be performed in the background without...
1
by: Clay Hobbs | last post by:
On Sun, 2008-10-05 at 14:16 -0400, Mike C. Fletcher wrote: I'm using wxPython. My real problem is that everything flashes when it moves. I thought the way to fix this was to make a...
8
by: zeeshan708 | last post by:
what is the difference between the buffered and unbuffered stream ??(e.g we say that cout is buffered and cerr is unbuffered stream) does that mean that the output sent to buffered stream have to go...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.