public class SerialPortAT extends SerialPort
SerialPort.BaudRate, SerialPort.Parity| Constructor and Description |
|---|
SerialPortAT(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 |
write(byte[] bytes) |
void |
write(int b) |
getInputStream, getOutputStream, getReadTimeout, getSerialParameters, setReadTimeoutpublic SerialPortAT(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 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.