Top "Stream" questions

DO NOT USE FOR THE JAVA STREAM API INTRODUCED IN JAVA 8 (use [java-stream] for those questions!

How to close a readable stream (before end)?

How to close a readable stream in Node.js? var input = fs.createReadStream('lines.txt'); input.on('data', function(data) { // …

node.js stream fs
Converting a Buffer into a ReadableStream in Node.js

I'm fairly new to Buffers and ReadableStreams, so maybe this is a stupid question. I have a library that takes …

javascript node.js stream buffer
Error "This stream does not support seek operations" in C#

I'm trying to get an image from an url using a byte stream. But i get this error message: This …

c# stream byte
Write StringBuilder to Stream

What is the best method of writing a StringBuilder to a System.IO.Stream? I am currently doing: StringBuilder message = …

c# stream stringbuilder
Open an IO stream from a local file or url

I know there are libs in other languages that can take a string that contains either a path to a …

ruby stream
Open video stream on VLC Player through the browser

Is it possible to add a type of link on a webpage that will open up VLC Player and start …

video stream video-streaming vlc
Buffer entire file in memory with Node.js

I have a relatively small file (some hundreds of kilobytes) that I want to be in memory for direct access …

node.js stream buffer
How to clear ostringstream

ostringstream s; s << "123"; cout << s.str().c_str() << endl; // how to clear ostringstream here? …

c++ stream
Difference between java.io.PrintWriter and java.io.BufferedWriter?

Please look through code below: // A.class File file = new File("blah.txt"); FileWriter fileWriter = new FileWriter(file); PrintWriter printWriter = …

java file stream filereader bufferedreader
Printing Runtime exec() OutputStream to console

I am trying to get the OutputStream of the Process initiated by exec() to the console. How can this be …

java stream runtime runtime.exec printstream