You mean, sending an inputStream to an application that was not started from your application? I think that isn't possible - in any language.
There is shared-memory and sockets to send data to other applications. Databases usually work like this. But you can only feed the input pipe of applications you started as subprocess as far as I know.