Re: [akka-user] Akka Streams: Question about mixing with Java IO streams

2015-09-10 Thread Endre Varga
Thanks Alex, that thing just cries for being wrapped in a PushPullStage! -Endre On Thu, Sep 10, 2015 at 12:56 AM, Alex Cruise wrote: > Spinning threads to babysit blocking IO streams is a time-honoured, albeit > extremely distasteful, technique. You might be interested in a "push-pull" > parse

Re: [akka-user] Akka Streams: Question about mixing with Java IO streams

2015-09-09 Thread Alex Cruise
Spinning threads to babysit blocking IO streams is a time-honoured, albeit extremely distasteful, technique. You might be interested in a "push-pull" parser, courtesy of Tatu Saloranta: http://wiki.fasterxml.com/AaltoHome -0xe1a On Tue, Sep 8, 2015 at 2:30 AM, Sarah Gerweck wrote: > I'm a bit

Re: [akka-user] Akka Streams: Question about mixing with Java IO streams

2015-09-09 Thread Akka Team
Hi Sarah, While the code you linked is a bit unorthodox it looks sound to me :) Unfortunately the blocking Input/OutputStream abstractions are quite hostile to proper async streaming especially when it comes to transformations (as you have noticed). I don't really know a clean way right now, hope

[akka-user] Akka Streams: Question about mixing with Java IO streams

2015-09-08 Thread Sarah Gerweck
I'm a bit new to Akka Streams and hoping somebody could take a quick look at what I've done and tell me if there's a better way to do it. I've been working on a project where I have XML documents that I want to reformat as part of a project that uses Akka Streams & Akka HTTP. (These documents a