|
|||||||||
PREV NEXT | FRAMES NO FRAMES |
Uses of SerialPortException in jssc |
---|
Methods in jssc that throw SerialPortException | |
---|---|
void |
SerialPort.addEventListener(SerialPortEventListener listener)
Add event listener. |
void |
SerialPort.addEventListener(SerialPortEventListener listener,
int mask)
Add event listener. |
boolean |
SerialPort.closePort()
Close port. |
int |
SerialPort.getEventsMask()
Getting events mask for the port |
int |
SerialPort.getFlowControlMode()
Get flow control mode |
int |
SerialPort.getInputBufferBytesCount()
Get count of bytes in input buffer |
int[] |
SerialPort.getLinesStatus()
Getting lines status. |
int |
SerialPort.getOutputBufferBytesCount()
Get count of bytes in output buffer |
boolean |
SerialPort.isCTS()
Get state of CTS line |
boolean |
SerialPort.isDSR()
Get state of DSR line |
boolean |
SerialPort.isRING()
Get state of RING line |
boolean |
SerialPort.isRLSD()
Get state of RLSD line |
boolean |
SerialPort.openPort()
Port opening Note: If port busy TYPE_PORT_BUSY exception will be thrown. |
boolean |
SerialPort.purgePort(int flags)
Purge of input and output buffer. |
byte[] |
SerialPort.readBytes()
Read all available bytes from port like a byte array |
byte[] |
SerialPort.readBytes(int byteCount)
Read byte array from port |
byte[] |
SerialPort.readBytes(int byteCount,
int timeout)
Read byte array from port |
java.lang.String |
SerialPort.readHexString()
Read all available bytes from port like a Hex String |
java.lang.String |
SerialPort.readHexString(int byteCount)
Read Hex string from port (example: FF 0A FF). |
java.lang.String |
SerialPort.readHexString(int byteCount,
int timeout)
Read Hex string from port (example: FF 0A FF). |
java.lang.String |
SerialPort.readHexString(int byteCount,
java.lang.String separator)
Read Hex string from port with setted separator (example if separator is "::": FF::0A::FF) |
java.lang.String |
SerialPort.readHexString(int byteCount,
java.lang.String separator,
int timeout)
Read Hex string from port with setted separator (example if separator is "::": FF::0A::FF) |
java.lang.String |
SerialPort.readHexString(java.lang.String separator)
Read all available bytes from port like a Hex String with setted separator |
java.lang.String[] |
SerialPort.readHexStringArray()
Read all available bytes from port like a Hex String array |
java.lang.String[] |
SerialPort.readHexStringArray(int byteCount)
Read Hex String array from port |
java.lang.String[] |
SerialPort.readHexStringArray(int byteCount,
int timeout)
Read Hex String array from port |
int[] |
SerialPort.readIntArray()
Read all available bytes from port like a int array (values in range from 0 to 255) |
int[] |
SerialPort.readIntArray(int byteCount)
Read int array from port |
int[] |
SerialPort.readIntArray(int byteCount,
int timeout)
Read int array from port |
java.lang.String |
SerialPort.readString()
Read all available bytes from port like a String |
java.lang.String |
SerialPort.readString(int byteCount)
Read string from port |
java.lang.String |
SerialPort.readString(int byteCount,
int timeout)
Read string from port |
boolean |
SerialPort.removeEventListener()
Delete event listener. |
boolean |
SerialPort.sendBreak(int duration)
Send Break singnal for setted duration |
boolean |
SerialPort.setDTR(boolean enabled)
Change DTR line state. |
boolean |
SerialPort.setEventsMask(int mask)
Set events mask. |
boolean |
SerialPort.setFlowControlMode(int mask)
Set flow control mode. |
boolean |
SerialPort.setParams(int baudRate,
int dataBits,
int stopBits,
int parity)
Setting the parameters of port. |
boolean |
SerialPort.setParams(int baudRate,
int dataBits,
int stopBits,
int parity,
boolean setRTS,
boolean setDTR)
Setting the parameters of port |
boolean |
SerialPort.setRTS(boolean enabled)
Change RTS line state. |
boolean |
SerialPort.writeByte(byte singleByte)
Write single byte to port |
boolean |
SerialPort.writeBytes(byte[] buffer)
Write byte array to port |
boolean |
SerialPort.writeInt(int singleInt)
Write int value (in range from 0 to 255 (0x00 - 0xFF)) to port |
boolean |
SerialPort.writeIntArray(int[] buffer)
Write int array (in range from 0 to 255 (0x00 - 0xFF)) to port |
boolean |
SerialPort.writeString(java.lang.String string)
Write String to port |
boolean |
SerialPort.writeString(java.lang.String string,
java.lang.String charsetName)
Write String to port |
|
|||||||||
PREV NEXT | FRAMES NO FRAMES |