开发者

How to read in data from local port in Java?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜