开发者

How to read in data from local port in Java?

开发者 https://www.devze.com 2023-03-29 14:44 出处:网络
If localhost:port# was transmitting data and you wanted to read the data via Java to turn it into a string and display it, is there a library for that? Otherwise, how woul开发者_开发问答d you go about

If localhost:port# was transmitting data and you wanted to read the data via Java to turn it into a string and display it, is there a library for that? Otherwise, how woul开发者_开发问答d you go about that?

Thanks! :)


Java has several utility classes to support those operations, such as Socket (for connecting to the local port), StringBuilder (to build a string), and JTextArea (to display the data in a GUI).

0

精彩评论

暂无评论...
验证码 换一张
取 消