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).
精彩评论