Questions tagged [bufferedstream]
31 questions
0
votes
0 answers
Why I'm not getting any response in Console in Eclipse with the following program?
what's wrong in this code? I'm trying to make compiler accept my keyboard input; but compilation is not ending while it's also not throwing any error or warning. I'm using Eclipse 4.14 for Mac OS X. Can anyone suggest.
import…
0
votes
1 answer
C# Change downloaded file directory
I have the following code where it will retrieve data from stream and print it to text file using streamwriter and bufferedwriter. By default, it will download the file to the download folder directory in your local pc. The issue that I’m facing…

Hakim Bajuri
- 61
- 9
0
votes
1 answer
String Tokenizer giving exception while taking space saperated values using BufferedReader
I tried to start using BufferedReader instead of Scanner. While coding for a question on codechef (SMRSTR), I tried taking space separated inputs by using StringTokenizer but it is raising exception i.e NumberFormatException. I found some question…

sahil mehta
- 17
- 7
0
votes
0 answers
Android: BufferedReader "instant crash"
Why does it like instantly crash and say "x keeps stopping" when BufferedReader is declared in the code?
This is the code for now (not everything):
web.setWebViewClient(new WebViewClient() {
public void onPageFinished(WebView view, String url) {
…

quidproquo
- 27
- 9
0
votes
1 answer
BufferedStream in WinRT?
Is there an equivalent of the System.IO.BufferedStream class for WinRT? The class itself isn't available, but is there a way to achieve the same behavior?

Thomas Levesque
- 286,951
- 70
- 623
- 758
0
votes
1 answer
Corrupted BufferedStream when reconnecting a dropped NetworkStream
Heres the scenerio...
Server
I have TcpListener server that is accepting connections
When a connection is made, I wrap the TcpClient.GetStream() in a buffered stream.
Then I am using a BinaryFormatter to deserialize incoming data from the…

Derek
- 39
- 7
0
votes
0 answers
Buffered stream details
I want to explain my understanding with example. Let stream be any abstract buffered network stream with 4 bytes buffer. Let there be some byte-to-byte writing process (drawed like FIFO).
write->| | | | |----->net
----->net operation is…

mazharenko
- 565
- 5
- 11
0
votes
3 answers
How do I use unread() in PushBackBufferedInputStream after the stream is empty?
Making a Lexical Analyzer in Java and I'm using PushbackInputStream because I need to be able to push back what I read in case it's not what I wanted. But whenever the stream is empty and read() returns -1. It doesn't allow me to use unread().
EDIT:…

fent
- 17,861
- 15
- 87
- 91
0
votes
1 answer
I can't compare correctly a word I read from a file with bufferedreader
I have a program which can recognize specific words from a file .txt
The problem is when find a word I send it to a method like "value" and I question:
if (value == "specificword") {...}
this question is always false. I have made many debugs and…

alex
- 323
- 1
- 2
- 16
0
votes
1 answer
Is there any way to optimize performance of reading stream?
I'm requesting remote SOAP web-service but all operation (from click search button to render interface with answer) took almost two minutes, it's too long. So I wonder if there any possible way to improve performance of the current code.
Operation…

andrey.shedko
- 3,128
- 10
- 61
- 121
0
votes
2 answers
c# reading text file with contention from other instances
I have a app that reads data from a text file using:
CRD.reader = new StreamReader(fn,Encoding.UTF8,true,1024);
CRD.readLine();
BUT I run 16 instances of this app in parallel on my 24 core machine. When I do this the…

ManInMoon
- 6,795
- 15
- 70
- 133
0
votes
2 answers
Close BufferedStream without TcpClient disconnect?
I am trying to send image via TcpClient and BufferedStream. The problem is that i cant send the data without disconnecting the TcpClient.
Send data:
while ((bytesread = bufferedinput.Read(buffer, 0, sizeBuffer)) > 0)
{
…
0
votes
3 answers
In C++, how system implement the buffered stream?
Can someone write some sample code to explain this concept?
I know what a buffered stream is used for, but I also would like to know how to implement that.
Thanks in advance!

MemoryLeak
- 7,322
- 23
- 90
- 133
0
votes
5 answers
How to find a specific value after a specific word in Java?
I got a text from a BufferedReader and I need to get a specific value in a specific string.
This is the text:
aimtolerance = 1024;
model = Araarrow;
name = Bow and Arrows;
range = 450;
reloadtime = 3;
soundhitclass = arrow;
…

user1541106
- 241
- 1
- 6
- 12
-1
votes
3 answers
How to read whole file with read(char[] cbuf, int off, int len)
I've got this soure:
public static void inBufferBooks() throws IOException
{
Reader inStreamBooks = null;
BufferedReader bufferIn = null;
try
{
inStreamBooks = new FileReader("Files/BufferBook.txt");
bufferIn = new…

Doncho Balamjiev
- 57
- 1
- 8