public class SerialPortJSerialComm extends SerialPort
SerialPort.BaudRate, SerialPort.Parity| Constructor and Description |
|---|
SerialPortJSerialComm(SerialParameters sp) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
isOpened() |
void |
open() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
void |
setReadTimeout(int readTimeout) |
void |
write(byte[] bytes) |
void |
write(int b) |
getInputStream, getOutputStream, getReadTimeout, getSerialParameterspublic SerialPortJSerialComm(SerialParameters sp)
public void write(int b)
throws IOException
write in class SerialPortIOExceptionpublic void write(byte[] bytes)
throws IOException
write in class SerialPortIOExceptionpublic void open()
throws SerialPortException
open in class SerialPortSerialPortExceptionpublic void setReadTimeout(int readTimeout)
setReadTimeout in class SerialPortpublic int read()
throws IOException
read in class SerialPortIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class SerialPortIOExceptionpublic void close()
close in class SerialPortpublic boolean isOpened()
isOpened in class SerialPortCopyright © 2018. All rights reserved.