Showing posts with label io. Show all posts
Showing posts with label io. Show all posts

Monday, June 11, 2012

Get an OutputStream into a String


What's the best way to pipe the output from an java.io.OutputStream to a String in Java?

Friday, May 25, 2012

Wednesday, February 29, 2012

C++ - inheriting ostream crashes on android but not windows


I have implemented a simple ostream and streambuf class. For some reason, it crashes when I try to instantiate my AndroidLogOStream object.

Tuesday, February 14, 2012

Can I demultiplex streams?


I want to join stderr ( getErrorStream ) and stdout ( getInputStream ) of a Process into a single Stream to be consumed elsewhere. Is there anything in Java's library that will do that for me?