|
1.0.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.comm.CommPort
javax.comm.SerialPort
public abstract class SerialPort
| Field Summary | |
|---|---|
static int |
DATABITS_5
Define the databits5 (int) constant. |
static int |
DATABITS_6
Define the databits6 (int) constant. |
static int |
DATABITS_7
Define the databits7 (int) constant. |
static int |
DATABITS_8
Define the databits8 (int) constant. |
static int |
FLOWCONTROL_NONE
Define the flowcontrol none (int) constant. |
static int |
FLOWCONTROL_RTSCTS_IN
Define the flowcontrol rtscts in (int) constant. |
static int |
FLOWCONTROL_RTSCTS_OUT
Define the flowcontrol rtscts out (int) constant. |
static int |
FLOWCONTROL_XONXOFF_IN
Define the flowcontrol xonxoff in (int) constant. |
static int |
FLOWCONTROL_XONXOFF_OUT
Define the flowcontrol xonxoff out (int) constant. |
static int |
PARITY_EVEN
Define the parity even (int) constant. |
static int |
PARITY_MARK
Define the parity mark (int) constant. |
static int |
PARITY_NONE
Define the parity none (int) constant. |
static int |
PARITY_ODD
Define the parity odd (int) constant. |
static int |
PARITY_SPACE
Define the parity space (int) constant. |
static int |
STOPBITS_1
Define the stopbits1 (int) constant. |
static int |
STOPBITS_1_5
Define the stopbits15 (int) constant. |
static int |
STOPBITS_2
Define the stopbits2 (int) constant. |
| Fields inherited from class javax.comm.CommPort |
|---|
name |
| Constructor Summary | |
|---|---|
SerialPort()
Constructs an instance of this class. |
|
| Method Summary | |
|---|---|
abstract void |
addEventListener(SerialPortEventListener lsnr)
Add event listener with the specified lsnr parameter. |
abstract int |
getBaudRate()
Gets the baud rate (int) value. |
abstract int |
getDataBits()
Gets the data bits (int) value. |
abstract int |
getFlowControlMode()
Gets the flow control mode (int) value. |
abstract int |
getParity()
Gets the parity (int) value. |
abstract int |
getStopBits()
Gets the stop bits (int) value. |
abstract boolean |
isCD()
Gets the cd (boolean) value. |
abstract boolean |
isCTS()
Gets the cts (boolean) value. |
abstract boolean |
isDSR()
Gets the dsr (boolean) value. |
abstract boolean |
isDTR()
Gets the dtr (boolean) value. |
abstract boolean |
isRI()
Gets the ri (boolean) value. |
abstract boolean |
isRTS()
Gets the rts (boolean) value. |
abstract void |
notifyOnBreakInterrupt(boolean enable)
Notify on break interrupt with the specified enable parameter. |
abstract void |
notifyOnCarrierDetect(boolean enable)
Notify on carrier detect with the specified enable parameter. |
abstract void |
notifyOnCTS(boolean enable)
Notify on cts with the specified enable parameter. |
abstract void |
notifyOnDataAvailable(boolean enable)
Notify on data available with the specified enable parameter. |
abstract void |
notifyOnDSR(boolean enable)
Notify on dsr with the specified enable parameter. |
abstract void |
notifyOnFramingError(boolean enable)
Notify on framing error with the specified enable parameter. |
abstract void |
notifyOnOutputEmpty(boolean enable)
Notify on output empty with the specified enable parameter. |
abstract void |
notifyOnOverrunError(boolean enable)
Notify on overrun error with the specified enable parameter. |
abstract void |
notifyOnParityError(boolean enable)
Notify on parity error with the specified enable parameter. |
abstract void |
notifyOnRingIndicator(boolean enable)
Notify on ring indicator with the specified enable parameter. |
abstract void |
removeEventListener()
Remove event listener. |
abstract void |
sendBreak(int millis)
Send break with the specified millis parameter. |
abstract void |
setDTR(boolean dtr)
Sets the dtr value. |
abstract void |
setFlowControlMode(int flowcontrol)
Sets the flow control mode value. |
void |
setRcvFifoTrigger(int trigger)
Sets the rcv fifo trigger value. |
abstract void |
setRTS(boolean rts)
Sets the rts value. |
abstract void |
setSerialPortParams(int baudrate,
int dataBits,
int stopBits,
int parity)
Set serial port params with the specified baudrate, data bits, stop bits and parity parameters. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int DATABITS_5
public static final int DATABITS_6
public static final int DATABITS_7
public static final int DATABITS_8
public static final int STOPBITS_1
public static final int STOPBITS_2
public static final int STOPBITS_1_5
public static final int PARITY_NONE
public static final int PARITY_ODD
public static final int PARITY_EVEN
public static final int PARITY_MARK
public static final int PARITY_SPACE
public static final int FLOWCONTROL_NONE
public static final int FLOWCONTROL_RTSCTS_IN
public static final int FLOWCONTROL_RTSCTS_OUT
public static final int FLOWCONTROL_XONXOFF_IN
public static final int FLOWCONTROL_XONXOFF_OUT
| Constructor Detail |
|---|
public SerialPort()
| Method Detail |
|---|
public abstract void addEventListener(SerialPortEventListener lsnr)
throws java.util.TooManyListenersException
lsnr - The lsnr (SerialPortEventListener) parameter.
java.util.TooManyListenersException - Too Many Listeners Exception.removeEventListener()public abstract int getBaudRate()
int) value.public abstract int getDataBits()
int) value.public abstract int getFlowControlMode()
int) value.setFlowControlMode(int)public abstract int getParity()
int) value.public abstract int getStopBits()
int) value.public abstract boolean isCD()
boolean) value.public abstract boolean isCTS()
boolean) value.notifyOnCTS(boolean)public abstract boolean isDSR()
boolean) value.notifyOnDSR(boolean)public abstract boolean isDTR()
boolean) value.setDTR(boolean)public abstract boolean isRI()
boolean) value.public abstract boolean isRTS()
boolean) value.setRTS(boolean)public abstract void notifyOnBreakInterrupt(boolean enable)
enable - The enable (boolean) parameter.public abstract void notifyOnCTS(boolean enable)
enable - The enable (boolean) parameter.public abstract void notifyOnCarrierDetect(boolean enable)
enable - The enable (boolean) parameter.public abstract void notifyOnDSR(boolean enable)
enable - The enable (boolean) parameter.public abstract void notifyOnDataAvailable(boolean enable)
enable - The enable (boolean) parameter.public abstract void notifyOnFramingError(boolean enable)
enable - The enable (boolean) parameter.public abstract void notifyOnOutputEmpty(boolean enable)
enable - The enable (boolean) parameter.public abstract void notifyOnOverrunError(boolean enable)
enable - The enable (boolean) parameter.public abstract void notifyOnParityError(boolean enable)
enable - The enable (boolean) parameter.public abstract void notifyOnRingIndicator(boolean enable)
enable - The enable (boolean) parameter.public abstract void removeEventListener()
addEventListener(SerialPortEventListener)public abstract void sendBreak(int millis)
millis - The millis (int) parameter.public abstract void setDTR(boolean dtr)
dtr - The dtr (boolean) parameter.isDTR()
public abstract void setFlowControlMode(int flowcontrol)
throws UnsupportedCommOperationException
flowcontrol - The flowcontrol (int) parameter.
UnsupportedCommOperationException - Unsupported Comm Operation Exception.getFlowControlMode()public abstract void setRTS(boolean rts)
rts - The rts (boolean) parameter.isRTS()public void setRcvFifoTrigger(int trigger)
trigger - The trigger (int) parameter.
public abstract void setSerialPortParams(int baudrate,
int dataBits,
int stopBits,
int parity)
throws UnsupportedCommOperationException
baudrate - The baudrate (int) parameter.dataBits - The data bits (int) parameter.stopBits - The stop bits (int) parameter.parity - The parity (int) parameter.
UnsupportedCommOperationException - Unsupported Comm Operation Exception.
|
1.0.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||