I'm trying to write a parser/Transformer using the new Stream2 API
(pull/read stream). I want to do something like this:
fs.createReadStream('file').pipe(parser).pipe(processor);
I don't have control over "processor". I would like to have my parser
read/pull "x" number of bytes from the file stream, parse it, then emit the
parsed data to the next step (in this case processor). I've tried listening
to the "pipe" event and attaching an event handler to the source Stream's
"readable" event but that doesn't seem to work. The underlying node Stream
API tries to call my write method instead of waiting for me to read from it.
Does the new Stream2 API support pull/readable Streams in the middle of
pipes?
--
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
---
You received this message because you are subscribed to the Google Groups
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.