How can I send data to a port using java... what classes can I use...
I'm not talking about a network port but a device like that of the monitor of a cash register connected to a computer?
Printable View
How can I send data to a port using java... what classes can I use...
I'm not talking about a network port but a device like that of the monitor of a cash register connected to a computer?
If you're looking to send data to the screen you simply use the System.out.println () method. Otherwise I'm now sure how or why you'd send data to the monitor.
Presumably, the device that you want to send to would have to be compatible with Java or some other language, so I'd imagine it would be similar to networking in that you'd have to agree on a port to manage communications between the device and your program.
There are "device capture" methods that exist in Java but I think they are only suitable for audio devices such as microphones, etc.