Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

IO and ports

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
please,

Does the java API support serial and parallel port communication.

if i have a device which connects to my computer via the serial or parallel communication port,can i write a java io code to communicate with it.

i saw something about javax.comm;pls what does it do.can it work on a windows xp operating system.

thanks for ur help
 
Ranch Hand
Posts: 961
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
The Java Communications API is an standard extension, and it does not come with the JDK. You have to download it from the Sun Developer Network.

Basically what you have to do is to obtain a port from a port identifier...



...and use the port to obtain the Input and Output Streams...



The Book Java IO by Elliote Rusty Harold (published by O'Reilly) has a chapter about it. Give it a look at Safari

I hope this helps.

Regards,
Edwin Dalorzo.
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Henry posted his followup question here.
 
    Bookmark Topic Watch Topic
  • New Topic