Access Standard-In and Output as streams

11 views
Skip to the first unread message

E. Ulrich Kriegel

unread,
28 Jul 2016, 2:19:45 am28/07/2016
to vert.x
He there,
im trying to implant something like unix filters with vertx. 
Pumps are great means to handle file streams.
Is it possible to use the same mechanism for standard-in and output?

Thanks in advance
--Ulrich



Julien Viet

unread,
28 Jul 2016, 4:45:33 am28/07/2016
to ve...@googlegroups.com
Hi,

as far as I know Java does not provide async version for the JVM standards IOs.

I think you need do it using threads that will read/write the streams (pretty much like explained here http://stackoverflow.com/questions/7872846/how-to-read-from-standard-input-non-blocking)

perhaps you can create a small open source lib for Vert.x that does it ?

--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/ff2d0255-0504-4a2c-9cc3-95708ffb10b4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages