Questions tagged [buffered]

96 questions
1
vote
2 answers

Buffered Channels with Goroutines using For loop

I am a newbie in golang and trying to experiment buffered channels with goroutines. I thought I understood how buffered channels work with goroutines until encountered the below example which becomes a brain teaser for me and gave a bang to the…
1
vote
0 answers

Buffered Reader/Writer VS Buffered Input/Output Stream to transfer files via FTP

I have been reading on URL and URLConnection and I know that both Buffered InputStream/OutputStream (for character streams) and, Buffered Reader/Writer (for byte streams) can be used to transfer the file from one ftp to another via URL and…
mb11
  • 11
  • 2
1
vote
2 answers

Dequeue Non_Persistent message from AQ Queue using JMS

I would like to dequeue a non persistent (=buffered) JMS Message from an Oracle AQ queue. In PL/SQL everything is fine and works, if I set L_DequeueOptions.VISIBILITY := DBMS_AQ.IMMEDIATE; L_DequeueOptions.DELIVERY_MODE := DBMS_AQ.BUFFERED; on…
Thirdman
  • 621
  • 7
  • 13
1
vote
5 answers

Java app breaks 10% of the time

I have an app that uses a 2400x1800 buffered Image (which I know it takes a lot of resources), but it works perfectly more than 90% of the time. Takes 130 mb of RAM and uses 5% of CPU. The problem is that, 10% of the time, it has a big lag and…
1
vote
2 answers

Force flush or read unflushed output

This is a frontend to the tool dc; the idea is to type an infix expression (2 + 3), map it to the corresponding postfix notation (2 3 +) and send it to dc. It's what bc does. I'm doing this with pipes, but the frontend hangs waiting for output. This…
bicup
  • 305
  • 1
  • 11
1
vote
2 answers

Sending buffered data through a socket from Android

I develop the first part of an Android application that allows to broadcast video stream through the network. Currently, I'm sending the video in a very direct way, like this: Socket socket = new Socket(InetAddress.getByName(hostname),…
Rob
  • 2,766
  • 5
  • 32
  • 39
1
vote
4 answers

Find both integers and strings for each line and put them in an array?

So i have this dat file (txt file) that has one state and one zipcode each of a country. In this dat file i have a semi semicolon that separates the strings for each line and the integers for each line. I am also using an interface and a main class…
1
vote
0 answers

Extjs Infinite grid loading only first page or all of them at once

I have added an infinite scrol grid in extjs 4.2.2, and proxy looks as below, setProxyForGridStore: function () { var me = this; me.proxy = Ext.createByAlias('proxy.search-results', { reader: { type:…
Sparrow
  • 355
  • 4
  • 19
1
vote
1 answer

BufferedWriter don't write txt file

Can someone help me to resolve my issue? I have problem that BufferedWriter does not write to text file. Program compiles without errors. int number_of_line_to_delete_in_file = 0,number_of_all_lines = 0; System.out.println("Trimmer - Logów…
1
vote
1 answer

Streaming printing with PHP

I've written a PHP script that makes a request to a search engine, accesses the served results, extracts some details from the results and then prints them in a more useful form. It all works well, but something I've discovered by accident is that…
orlade
  • 2,060
  • 4
  • 24
  • 35
1
vote
1 answer

How to communicate over sockets in Clozure Common Lisp?

In one CCL REPL I enter: (WITH-OPEN-SOCKET (socket :LOCAL-PORT 6667 :LOCAL-HOST "localhost" :CONNECT :PASSIVE :REUSE-ADDRESS t) (let ((stream (ACCEPT-CONNECTION…
Capstone
  • 2,254
  • 2
  • 20
  • 39
1
vote
3 answers

Why does my bufferedreader only read every second line?

i have a bufferedreader like this: BufferedReader br = BufferedReader(new FileReader(("Output/pointsSorted.txt"))); String line; while((line = br.readLine()) != null){ System.out.println(br.readLine()); } br.close(); } but…
Skalrayi
  • 13
  • 4
1
vote
2 answers

how to iterate over a text file to perform different tasks (including creating an unknown number of objects) depending on which line I'm reading

Hello I'm a low level comp sci student that's really struggling/unfamiliar with file i/o. I'm attempting to read in a text file using buffered reader. I understand how to use a while loop to continue scanning until the end of the file is reached…
Trixie the Cat
  • 317
  • 3
  • 18
1
vote
1 answer

Can a tagfield in ExtJS 5 use a bufferedstore?

I am trying to create a tag field. I have it displayed without any problems. I am just trying to use a bufferedstore instead of a memory paging store. Is this possible in a tagfield?
1
vote
1 answer

Separate two processes on 1 txt: FileReader and FileWriter

In my code at the first step I write the result of the matcher to the file test1.txt. At the second step I read the content of test1.txt and use a part of speech tagger on it. My problem is that writing and reading to test1.txt works at the same…
Oleg_08
  • 447
  • 1
  • 4
  • 23