rxjava2-extras icon indicating copy to clipboard operation
rxjava2-extras copied to clipboard

String Flowable to InputStream bridge

Open akarnokd opened this issue 7 years ago • 3 comments

Hi.

I took on the challenge of writing a bridge that turns Strings in a Flowable into bytes readable via the Java InputStream API (blockingly):

Since I don't do I/O in RxJava2Extensions, I'd like to ask if this project would be interested in this type of bridge?

akarnokd avatar Mar 22 '18 10:03 akarnokd

I like it. I'd be glad to give it a home, thanks. I'll have a think what to name it (Strings.createInputStream(Flowable<String>, Charset) perhaps, or Strings.toInputStream).

davidmoten avatar Mar 22 '18 10:03 davidmoten

Oh I just copied and pasted then fixed for Java 6. Would have been more polite to see if you wanted to make a PR (and good for the commit history to see who wrote what). Happy to roll change back for a PR if you want.

davidmoten avatar Mar 23 '18 01:03 davidmoten

I'm fine.

akarnokd avatar Mar 23 '18 07:03 akarnokd