com.partnersoft.io
Class SerialPortWrapper
java.lang.Object
com.partnersoft.io.SerialPortWrapper
public class SerialPortWrapper
- extends java.lang.Object
Opens the serial port in its constructor or throws an IOException. Designed
to be easier to use than the Java COMM library.
- Author:
- Russell Cagle Copyright 2007 Partner Software, Inc.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SerialPortWrapper
public SerialPortWrapper(java.lang.String portName)
throws java.io.IOException
- Throws:
java.io.IOException
close
public void close()
getInputStream
public java.io.InputStream getInputStream()
throws java.io.IOException
- Throws:
java.io.IOException
getPortName
public java.lang.String getPortName()
setSerialPortParams
public void setSerialPortParams(int baudRate,
int dataBits,
int stopBits,
int parity)
throws java.io.IOException
- Throws:
java.io.IOException
getBaudRate
public int getBaudRate()