public class SerialPortPJC extends SerialPort implements purejavacomm.SerialPortEventListener
SerialPort.BaudRate, SerialPort.Parity| Constructor and Description |
|---|
SerialPortPJC(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 |
serialEvent(purejavacomm.SerialPortEvent serialPortEvent) |
void |
setOpened(boolean opened) |
void |
setReadTimeout(int readTimeout) |
void |
write(byte[] bytes) |
void |
write(int b) |
getInputStream, getOutputStream, getReadTimeout, getSerialParameterspublic SerialPortPJC(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 SerialPortpublic void setOpened(boolean opened)
public void serialEvent(purejavacomm.SerialPortEvent serialPortEvent)
serialEvent in interface purejavacomm.SerialPortEventListenerCopyright © 2018. All rights reserved.