Overview
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
A
B
C
D
E
F
G
I
J
M
N
O
P
R
S
T
U
W
A
available()
- Method in class com.engidea.comm.
CommPort
Return the number of bytes available on read.
available()
- Method in class com.engidea.comm.
PortInputStream
available()
- Method in class com.engidea.win32jcom.
WinjcomPort
B
BI
- Static variable in class com.engidea.comm.
SerialPortEvent
C
CD
- Static variable in class com.engidea.comm.
SerialPortEvent
close()
- Method in class com.engidea.comm.
CommPort
close()
- Method in class com.engidea.win32jcom.
WinjcomPort
Close does not throw exception since there is no receovery from it.
com.engidea
- package com.engidea
com.engidea.comm
- package com.engidea.comm
com.engidea.win32jcom
- package com.engidea.win32jcom
CommPort
- Class in
com.engidea.comm
The main difference are the method read and write.
CommPort(String)
- Constructor for class com.engidea.comm.
CommPort
Constructor, needed since portName is final.
CommPortIdentifier
- Class in
com.engidea.comm
Devices are obtained from concrete instance of this class.
CommPortIdentifier()
- Constructor for class com.engidea.comm.
CommPortIdentifier
CTS
- Static variable in class com.engidea.comm.
SerialPortEvent
D
DATA_AVAILABLE
- Static variable in class com.engidea.comm.
SerialPortEvent
DATABITS_5
- Static variable in class com.engidea.comm.
SerialPort
DATABITS_6
- Static variable in class com.engidea.comm.
SerialPort
DATABITS_7
- Static variable in class com.engidea.comm.
SerialPort
DATABITS_8
- Static variable in class com.engidea.comm.
SerialPort
DEBUG_CLOSE_PORT
- Static variable in class com.engidea.win32jcom.
WinjcomIdentifier
DEBUG_COMMEVENT
- Static variable in class com.engidea.win32jcom.
WinjcomIdentifier
DEBUG_ERRORS
- Static variable in class com.engidea.win32jcom.
WinjcomIdentifier
DEBUG_INIT
- Static variable in class com.engidea.win32jcom.
WinjcomIdentifier
DEBUG_OPEN_PORT
- Static variable in class com.engidea.win32jcom.
WinjcomIdentifier
DEBUG_POPARAMS
- Static variable in class com.engidea.win32jcom.
WinjcomIdentifier
DEBUG_READ
- Static variable in class com.engidea.win32jcom.
WinjcomIdentifier
DEBUG_TEST_PORT
- Static variable in class com.engidea.win32jcom.
WinjcomIdentifier
DEBUG_WRITE
- Static variable in class com.engidea.win32jcom.
WinjcomIdentifier
disableReceiveFraming()
- Method in class com.engidea.comm.
CommPort
disableReceiveFraming()
- Method in class com.engidea.win32jcom.
WinjcomPort
disableReceiveThreshold()
- Method in class com.engidea.comm.
CommPort
disableReceiveThreshold()
- Method in class com.engidea.win32jcom.
WinjcomPort
disableReceiveTimeout()
- Method in class com.engidea.comm.
CommPort
disableReceiveTimeout()
- Method in class com.engidea.win32jcom.
WinjcomPort
DSR
- Static variable in class com.engidea.comm.
SerialPortEvent
E
enableReceiveFraming(int)
- Method in class com.engidea.comm.
CommPort
enableReceiveFraming(int)
- Method in class com.engidea.win32jcom.
WinjcomPort
enableReceiveThreshold(int)
- Method in class com.engidea.comm.
CommPort
enableReceiveThreshold(int)
- Method in class com.engidea.win32jcom.
WinjcomPort
enableReceiveTimeout(int)
- Method in class com.engidea.comm.
CommPort
enableReceiveTimeout(int)
- Method in class com.engidea.win32jcom.
WinjcomPort
F
FE
- Static variable in class com.engidea.comm.
SerialPortEvent
finalize()
- Method in class com.engidea.win32jcom.
WinjcomPort
Ideally the program MUST call close, but if it does not this is a chance to recover.
FLOWCONTROL_NONE
- Static variable in class com.engidea.comm.
SerialPort
FLOWCONTROL_RTSCTS_IN
- Static variable in class com.engidea.comm.
SerialPort
FLOWCONTROL_RTSCTS_OUT
- Static variable in class com.engidea.comm.
SerialPort
FLOWCONTROL_XONXOFF_IN
- Static variable in class com.engidea.comm.
SerialPort
FLOWCONTROL_XONXOFF_OUT
- Static variable in class com.engidea.comm.
SerialPort
flush()
- Method in class com.engidea.comm.
CommPort
This THROWS AWAY any char that is in the input or output queue !!!!
flush()
- Method in class com.engidea.comm.
PortOutputStream
flush()
- Method in class com.engidea.win32jcom.
WinjcomPort
G
getBaudRate()
- Method in class com.engidea.comm.
SerialPort
getBaudRate()
- Method in class com.engidea.win32jcom.
WinjcomPort
getCommPort(String)
- Method in class com.engidea.comm.
CommPortIdentifier
Given a port name will return the CommPort that you can use to do IO.
getCommPort(String)
- Method in class com.engidea.win32jcom.
WinjcomIdentifier
See the API description for documentation.
getCommPortList()
- Method in class com.engidea.comm.
CommPortIdentifier
Each time you call this one the driver will try to scan the system again for the ports that are attached.
getCommPortList()
- Method in class com.engidea.win32jcom.
WinjcomIdentifier
See at API description for documentation.
getDataBits()
- Method in class com.engidea.comm.
SerialPort
getDataBits()
- Method in class com.engidea.win32jcom.
WinjcomPort
getEventType()
- Method in class com.engidea.comm.
SerialPortEvent
getEventTypeString()
- Method in class com.engidea.comm.
SerialPortEvent
getFlowControlMode()
- Method in class com.engidea.comm.
SerialPort
getFlowControlMode()
- Method in class com.engidea.win32jcom.
WinjcomPort
getInputBufferSize()
- Method in class com.engidea.comm.
CommPort
getInputBufferSize()
- Method in class com.engidea.win32jcom.
WinjcomPort
getName()
- Method in class com.engidea.comm.
CommPort
Accessor for portName
getOutputBufferSize()
- Method in class com.engidea.comm.
CommPort
getOutputBufferSize()
- Method in class com.engidea.win32jcom.
WinjcomPort
getParity()
- Method in class com.engidea.comm.
SerialPort
getParity()
- Method in class com.engidea.win32jcom.
WinjcomPort
getReceiveFramingByte()
- Method in class com.engidea.comm.
CommPort
getReceiveFramingByte()
- Method in class com.engidea.win32jcom.
WinjcomPort
getReceiveThreshold()
- Method in class com.engidea.comm.
CommPort
getReceiveThreshold()
- Method in class com.engidea.win32jcom.
WinjcomPort
getReceiveTimeout()
- Method in class com.engidea.comm.
CommPort
getReceiveTimeout()
- Method in class com.engidea.win32jcom.
WinjcomPort
getStopBits()
- Method in class com.engidea.comm.
SerialPort
getStopBits()
- Method in class com.engidea.win32jcom.
WinjcomPort
I
isCD()
- Method in class com.engidea.comm.
SerialPort
isCD()
- Method in class com.engidea.win32jcom.
WinjcomPort
isCTS()
- Method in class com.engidea.comm.
SerialPort
isCTS()
- Method in class com.engidea.win32jcom.
WinjcomPort
isDSR()
- Method in class com.engidea.comm.
SerialPort
isDSR()
- Method in class com.engidea.win32jcom.
WinjcomPort
isDTR()
- Method in class com.engidea.comm.
SerialPort
isDTR()
- Method in class com.engidea.win32jcom.
WinjcomPort
isReceiveFramingEnabled()
- Method in class com.engidea.comm.
CommPort
isReceiveFramingEnabled()
- Method in class com.engidea.win32jcom.
WinjcomPort
isReceiveThresholdEnabled()
- Method in class com.engidea.comm.
CommPort
isReceiveThresholdEnabled()
- Method in class com.engidea.win32jcom.
WinjcomPort
isReceiveTimeoutEnabled()
- Method in class com.engidea.comm.
CommPort
isReceiveTimeoutEnabled()
- Method in class com.engidea.win32jcom.
WinjcomPort
isRI()
- Method in class com.engidea.comm.
SerialPort
isRI()
- Method in class com.engidea.win32jcom.
WinjcomPort
isRTS()
- Method in class com.engidea.comm.
SerialPort
isRTS()
- Method in class com.engidea.win32jcom.
WinjcomPort
J
jcomNativeLibrary
- Static variable in class com.engidea.win32jcom.
WinjcomIdentifier
M
main(String[])
- Static method in class com.engidea.
PortTester
N
notifyOnBreakInterrupt(boolean)
- Method in class com.engidea.comm.
SerialPort
notifyOnBreakInterrupt(boolean)
- Method in class com.engidea.win32jcom.
WinjcomPort
notifyOnCarrierDetect(boolean)
- Method in class com.engidea.comm.
SerialPort
notifyOnCarrierDetect(boolean)
- Method in class com.engidea.win32jcom.
WinjcomPort
notifyOnCTS(boolean)
- Method in class com.engidea.comm.
SerialPort
notifyOnCTS(boolean)
- Method in class com.engidea.win32jcom.
WinjcomPort
notifyOnDataAvailable(boolean)
- Method in class com.engidea.comm.
SerialPort
notifyOnDataAvailable(boolean)
- Method in class com.engidea.win32jcom.
WinjcomPort
notifyOnDSR(boolean)
- Method in class com.engidea.comm.
SerialPort
notifyOnDSR(boolean)
- Method in class com.engidea.win32jcom.
WinjcomPort
notifyOnFramingError(boolean)
- Method in class com.engidea.comm.
SerialPort
notifyOnFramingError(boolean)
- Method in class com.engidea.win32jcom.
WinjcomPort
notifyOnOutputEmpty(boolean)
- Method in class com.engidea.comm.
SerialPort
notifyOnOutputEmpty(boolean)
- Method in class com.engidea.win32jcom.
WinjcomPort
notifyOnOverrunError(boolean)
- Method in class com.engidea.comm.
SerialPort
notifyOnOverrunError(boolean)
- Method in class com.engidea.win32jcom.
WinjcomPort
notifyOnParityError(boolean)
- Method in class com.engidea.comm.
SerialPort
notifyOnParityError(boolean)
- Method in class com.engidea.win32jcom.
WinjcomPort
notifyOnRingIndicator(boolean)
- Method in class com.engidea.comm.
SerialPort
notifyOnRingIndicator(boolean)
- Method in class com.engidea.win32jcom.
WinjcomPort
O
OE
- Static variable in class com.engidea.comm.
SerialPortEvent
open()
- Method in class com.engidea.comm.
CommPort
open()
- Method in class com.engidea.win32jcom.
WinjcomPort
Opens the port to be used for work.
OUTPUT_BUFFER_EMPTY
- Static variable in class com.engidea.comm.
SerialPortEvent
P
PARITY_EVEN
- Static variable in class com.engidea.comm.
SerialPort
PARITY_MARK
- Static variable in class com.engidea.comm.
SerialPort
PARITY_NONE
- Static variable in class com.engidea.comm.
SerialPort
PARITY_ODD
- Static variable in class com.engidea.comm.
SerialPort
PARITY_SPACE
- Static variable in class com.engidea.comm.
SerialPort
PE
- Static variable in class com.engidea.comm.
SerialPortEvent
PortInputStream
- Class in
com.engidea.comm
If you want to have an input stream instead of read you can just new PortInputStream(commPort) and you can have an input stream.
PortInputStream(CommPort)
- Constructor for class com.engidea.comm.
PortInputStream
portName
- Variable in class com.engidea.comm.
CommPort
PortOutputStream
- Class in
com.engidea.comm
If you want to have an output stream instead of write you can just new PortOutputStream(commPort) and you can have an output stream.
PortOutputStream(CommPort)
- Constructor for class com.engidea.comm.
PortOutputStream
PortTester
- Class in
com.engidea
Simple class that can list system ports and allow IO
PortTester()
- Constructor for class com.engidea.
PortTester
R
read(byte[], int, int)
- Method in class com.engidea.comm.
CommPort
Port instances are allowed to read less chars than requested at their wish.
read()
- Method in class com.engidea.comm.
PortInputStream
read(byte[])
- Method in class com.engidea.comm.
PortInputStream
read(byte[], int, int)
- Method in class com.engidea.comm.
PortInputStream
read(byte[], int, int)
- Method in class com.engidea.win32jcom.
WinjcomPort
RI
- Static variable in class com.engidea.comm.
SerialPortEvent
S
sendBreak(int)
- Method in class com.engidea.comm.
SerialPort
sendBreak(int)
- Method in class com.engidea.win32jcom.
WinjcomPort
serialEvent(SerialPortEvent)
- Method in interface com.engidea.comm.
SerialPortEventListener
SerialPort
- Class in
com.engidea.comm
Defines a generic serial port, concrete implementation may have more methods but this should be fairly general.
SerialPort(String)
- Constructor for class com.engidea.comm.
SerialPort
COnstructor needed since portName is final
SerialPortEvent
- Class in
com.engidea.comm
If you ever want to know what was the previous state of something just save it in your code.
SerialPortEvent(SerialPort, int)
- Constructor for class com.engidea.comm.
SerialPortEvent
SerialPortEventListener
- Interface in
com.engidea.comm
If an Object wants to listen to serial events it shouldimplement this interface and then attash itseld to the port using the public abstract void setEventListener(SerialPortEventListener lsnr)
setDTR(boolean)
- Method in class com.engidea.comm.
SerialPort
setDTR(boolean)
- Method in class com.engidea.win32jcom.
WinjcomPort
setEventListener(SerialPortEventListener)
- Method in class com.engidea.comm.
SerialPort
setEventListener(SerialPortEventListener)
- Method in class com.engidea.win32jcom.
WinjcomPort
Set the listener to be used, if null then it just clears the listener.
setFlowControlMode(int)
- Method in class com.engidea.comm.
SerialPort
setFlowControlMode(int)
- Method in class com.engidea.win32jcom.
WinjcomPort
The param is one of FLOWCONTROL_ defined in SerialPort
setInputBufferSize(int)
- Method in class com.engidea.comm.
CommPort
setInputBufferSize(int)
- Method in class com.engidea.win32jcom.
WinjcomPort
setOutputBufferSize(int)
- Method in class com.engidea.comm.
CommPort
setOutputBufferSize(int)
- Method in class com.engidea.win32jcom.
WinjcomPort
setRTS(boolean)
- Method in class com.engidea.comm.
SerialPort
setRTS(boolean)
- Method in class com.engidea.win32jcom.
WinjcomPort
setSerialPortParams(int, int, int, int)
- Method in class com.engidea.comm.
SerialPort
setSerialPortParams(int, int, int, int)
- Method in class com.engidea.win32jcom.
WinjcomPort
STOPBITS_1
- Static variable in class com.engidea.comm.
SerialPort
STOPBITS_1_5
- Static variable in class com.engidea.comm.
SerialPort
STOPBITS_2
- Static variable in class com.engidea.comm.
SerialPort
T
TimeoutException
- Exception in
com.engidea.comm
TimeoutException(String)
- Constructor for exception com.engidea.comm.
TimeoutException
toString()
- Method in class com.engidea.comm.
CommPort
toString()
- Method in class com.engidea.comm.
SerialPortEvent
toString()
- Method in class com.engidea.win32jcom.
WinjcomPort
What is probably useful is to have the port this driver is bound to.
U
UnsupportedException
- Exception in
com.engidea.comm
UnsupportedException(String)
- Constructor for exception com.engidea.comm.
UnsupportedException
W
WinjcomIdentifier
- Class in
com.engidea.win32jcom
To get a port you instantiate this class and then call the getCommPort() Once you have a port you can open it and then you can read and write.
WinjcomIdentifier(int)
- Constructor for class com.engidea.win32jcom.
WinjcomIdentifier
You start with this one You can enable debugging mask if you wish so.
WinjcomPort
- Class in
com.engidea.win32jcom
write(byte[], int, int)
- Method in class com.engidea.comm.
CommPort
Port instances are allowed to write less chars than requested.
write(int)
- Method in class com.engidea.comm.
PortOutputStream
write(byte[])
- Method in class com.engidea.comm.
PortOutputStream
write(byte[], int, int)
- Method in class com.engidea.comm.
PortOutputStream
write(byte[], int, int)
- Method in class com.engidea.win32jcom.
WinjcomPort
A
B
C
D
E
F
G
I
J
M
N
O
P
R
S
T
U
W
Overview
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes