[英]How to Read/Write to a Process in Java
I'm trying to gain access to a running process that I know the name of so that I can read and write to it. 我正在尝试访问一个我知道其名称的正在运行的进程,以便可以对其进行读写。
How can this be done in Java? 用Java如何做到这一点?
There are many ways. 有很多方法。 What you need isn't clear enough to know which one is suitable for your need.
您所需要的还不够清楚,无法知道哪一种适合您的需求。
Unfortunately the details of each possibility are too great to post in such an answer; 不幸的是,每种可能性的细节都太多了,以至于无法发布这样的答案。 and, would probably be noise if they don't match well with your communication goals.
并且,如果它们与您的沟通目标不符,可能会成为噪音。 I suggest you alternate between reading up on some of these technologies and thinking about what style and requirements you have for communication.
我建议您在阅读这些技术中的一些与思考您对通信的风格和要求之间进行选择。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.