akrv / java-simple-serial-connector

Automatically exported from code.google.com/p/java-simple-serial-connector
0 stars 0 forks source link

SerialPort should allow for method that return Inpu/Outputstream #68

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Instead of providing "custom" read/write functions it would be more suitable to 
have an getOuputstream and getInputstream Method.

This way the normal java I/O infrastructure 
((Buffered)Readers,(Bufferred)Writers, and so on)  can be used.

It would also allow to easy interface with other software libs.

Related to this it would be good to extend let SerialPortException extend 
IOException

Original issue reported on code.google.com by lae...@googlemail.com on 14 Jul 2014 at 3:43

GoogleCodeExporter commented 9 years ago
I second this, and really hope it is added. Our API requires that those streams 
be exposed, because we frame our communications in SOH/ETX characters. I cant 
tell the SerialPort to block until it reads to a specific char, or -1. I would 
really like to get off of RXTX, but encapsulation of the streams sorta rules 
out this library as an alternative :(

Original comment by none...@gmail.com on 9 Sep 2014 at 2:20