Top "Stream" questions

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

Efficient way to search a stream for a string

Let's suppose that have a stream of text (or Reader in Java) that I'd like to check for a particular …

java algorithm string search stream
Writing strings to TMemoryStream

I have read alot of discussions on here regarding writing strings to a TMemoryStream and saving to file and reading …

delphi stream memorystream
Streaming to the Android MediaPlayer

I'm trying to write a light-weight HTTP server in my app to feed dynamically generated MP3 data to the built-in …

android http stream media-player android-mediaplayer
How To Get A Stream Object From A Resource File (Console App/Windows Service Project)

I'm creating a Windows service and am trying to access some files I added to a resource file, but I'm …

c# stream console-application embedded-resource
fgets() and fread() - What is the difference?

I understand the differences between fgets() and fgetss() but I don't get the difference between fgets() and fread(), can someone …

php smtp stream fread fgets
Silverlight 4.0 PDF Viewer

Any free control to view PDF for Silverlight? or how to view pdf in silverlight from memory stream?

silverlight pdf silverlight-4.0 stream viewer
Checking if a stream is empty

I am trying to deserialize a XML-file. I need to check if the XML-file stream is empty before tying to …

c# .net stream deserialization
Unable to show PDF in p:media generated from streamed content in Primefaces

I'm trying to show inline PDF which is opened in new browser window. I have following scenario: In some ActionListen …

pdf jsf-2 primefaces stream media
Can you "stream" images to ffmpeg to construct a video, instead of saving them to disk?

My work recently involves programmatically making videos. In python, the typical workflow looks something like this: import subprocess, Image, ImageDraw …

python image stream ffmpeg python-imaging-library
Is it necessary to close a FileWriter, provided it is written through a BufferedWriter?

Consider a BufferedReader as below: writer = new BufferedWriter(new FileWriter(new File("File.txt"), true)); In this case at the …

java file stream filewriter bufferedwriter