Skip to content

Java InputStream and OutputStream Interfacing Usage Example

Will Hedgecock edited this page Mar 12, 2015 · 9 revisions

InputStream in = comPort.getInputStream(); try { for (int j = 0; j < 1000; ++j) System.out.print((char)in.read()); in.close(); } catch (Exception e) { e.printStackTrace(); }