📄 javax.comm.serialport.html
字号:
<dd> Gets the state of the RTS (Request To Send) bit in the UART.
<p>
</dl>
<a name="isCTS()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="isCTS"><b>isCTS</b></a>
<pre>
public abstract boolean isCTS()
</pre>
<dl>
<dd> Gets the state of the CTS (Clear To Send) bit in the UART.
<p>
</dl>
<a name="isDSR()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="isDSR"><b>isDSR</b></a>
<pre>
public abstract boolean isDSR()
</pre>
<dl>
<dd> Gets the state of the DSR (Data Set Ready) bit in the UART.
<p>
</dl>
<a name="isRI()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="isRI"><b>isRI</b></a>
<pre>
public abstract boolean isRI()
</pre>
<dl>
<dd> Gets the state of the RI (Ring Indicator) bit in the UART.
<p>
</dl>
<a name="isCD()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="isCD"><b>isCD</b></a>
<pre>
public abstract boolean isCD()
</pre>
<dl>
<dd> Gets the state of the CD (Carrier Detect) bit in the UART.
<p>
</dl>
<a name="addEventListener(javax.comm.SerialPortEventListener)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="addEventListener"><b>addEventListener</b></a>
<pre>
public abstract void addEventListener(<a href="javax.comm.SerialPortEventListener.html#_top_">SerialPortEventListener</a> lsnr) throws TooManyListenersException
</pre>
<dl>
<dd> Registers a <CODE>SerialPortEventListener</CODE> object to listen for <CODE>SerialEvent</CODE>s. Interest in specific events may be expressed using the <CODE>notifyOn<I>XXX</I></CODE> calls. The <CODE>serialEvent</CODE> method of <CODE>SerialPortEventListener</CODE> will be called with a <CODE>SerialEvent</CODE> object describing the event. <P> Only one listener per <CODE>SerialPort</CODE> is supported. Calling <CODE>addEventListener</CODE> multiple times will simply replace the current <CODE>SerialPortEventListener</CODE> object. <P> All the events received by this listener are generated by one dedicated thread that belongs to the SerialPort object. After the port is closed, no more event will be generated. Another call to <CODE>open()</CODE> of the port's <CODE>CommPortIdentifier</CODE> object will return a new <CODE>CommPort</CODE> object, and the lsnr has to be added again to the new <CODE>CommPort</CODE> object to receive event from this port. <P>
<p>
<dd><dl>
<dt> <b>Parameters:</b>
<dd> lsnr - The <CODE>SerialPortEventListener</CODE> object whose <CODE>serialEvent</CODE> method will be called with a <CODE>SerialEvent</CODE> describing the event. <P>
<dt> <b>Throws:</b> TooManyListenersException
<dd> If an initial attempt to attach a listener succeeds, subsequent attempts will throw TooManyListenersException without effecting the first listener.
</dl></dd>
</dl>
<a name="removeEventListener()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="removeEventListener"><b>removeEventListener</b></a>
<pre>
public abstract void removeEventListener()
</pre>
<dl>
<dd> Deregisters event listener registered using <CODE>addEventListener</CODE>. <P> This is done automatically at port close.
<p>
</dl>
<a name="notifyOnDataAvailable(boolean)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="notifyOnDataAvailable"><b>notifyOnDataAvailable</b></a>
<pre>
public abstract void notifyOnDataAvailable(boolean enable)
</pre>
<dl>
<dd> Expresses interest in receiving notification when input data is available. This may be used to drive asynchronous input. When data is available in the input buffer, this event is propagated to the listener registered using <CODE>addEventListener</CODE>. <P> The event will be generated once when new data arrive at the serial port. Even if the user doesn't read the data, it won't be generated again until next time new data arrive.
<p>
<dd><dl>
<dt> <b>Parameters:</b>
<dd> enable - <UL> <LI> true: enable notification <LI> false: disable notification </UL>
</dl></dd>
</dl>
<a name="notifyOnOutputEmpty(boolean)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="notifyOnOutputEmpty"><b>notifyOnOutputEmpty</b></a>
<pre>
public abstract void notifyOnOutputEmpty(boolean enable)
</pre>
<dl>
<dd> Expresses interest in receiving notification when the output buffer is empty. This may be used to drive asynchronous output. When the output buffer becomes empty, this event is propagated to the listener registered using <CODE>addEventListener</CODE>. The event will be generated after a write is completed, when the system buffer becomes empty again.
<p>
<dd><dl>
<dt> <b>Parameters:</b>
<dd> enable - <UL> <LI> true: enable notification <LI> false: disable notification </UL>
</dl></dd>
</dl>
<a name="notifyOnCTS(boolean)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="notifyOnCTS"><b>notifyOnCTS</b></a>
<pre>
public abstract void notifyOnCTS(boolean enable)
</pre>
<dl>
<dd> Expresses interest in receiving notification when the CTS (Clear To Send) bit changes.
<p>
<dd><dl>
<dt> <b>Parameters:</b>
<dd> enable - <UL> <LI> true: enable notification <LI> false: disable notification </UL>
</dl></dd>
</dl>
<a name="notifyOnDSR(boolean)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="notifyOnDSR"><b>notifyOnDSR</b></a>
<pre>
public abstract void notifyOnDSR(boolean enable)
</pre>
<dl>
<dd> Expresses interest in receiving notification when the DSR (Data Set Ready) bit changes.
<p>
<dd><dl>
<dt> <b>Parameters:</b>
<dd> enable - <UL> <LI> true: enable notification <LI> false: disable notification </UL>
</dl></dd>
</dl>
<a name="notifyOnRingIndicator(boolean)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="notifyOnRingIndicator"><b>notifyOnRingIndicator</b></a>
<pre>
public abstract void notifyOnRingIndicator(boolean enable)
</pre>
<dl>
<dd> Expresses interest in receiving notification when the RI (Ring Indicator) bit changes.
<p>
<dd><dl>
<dt> <b>Parameters:</b>
<dd> enable - <UL> <LI> true: enable notification <LI> false: disable notification </UL>
</dl></dd>
</dl>
<a name="notifyOnCarrierDetect(boolean)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="notifyOnCarrierDetect"><b>notifyOnCarrierDetect</b></a>
<pre>
public abstract void notifyOnCarrierDetect(boolean enable)
</pre>
<dl>
<dd> Expresses interest in receiving notification when the CD (Carrier Detect) bit changes.
<p>
<dd><dl>
<dt> <b>Parameters:</b>
<dd> enable - <UL> <LI> true: enable notification <LI> false: disable notification </UL>
</dl></dd>
</dl>
<a name="notifyOnOverrunError(boolean)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="notifyOnOverrunError"><b>notifyOnOverrunError</b></a>
<pre>
public abstract void notifyOnOverrunError(boolean enable)
</pre>
<dl>
<dd> Expresses interest in receiving notification when there is an overrun error.
<p>
<dd><dl>
<dt> <b>Parameters:</b>
<dd> enable - <UL> <LI> true: enable notification <LI> false: disable notification </UL>
</dl></dd>
</dl>
<a name="notifyOnParityError(boolean)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="notifyOnParityError"><b>notifyOnParityError</b></a>
<pre>
public abstract void notifyOnParityError(boolean enable)
</pre>
<dl>
<dd> Expresses interest in receiving notification when there is a parity error.
<p>
<dd><dl>
<dt> <b>Parameters:</b>
<dd> enable - <UL> <LI> true: enable notification <LI> false: disable notification </UL>
</dl></dd>
</dl>
<a name="notifyOnFramingError(boolean)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="notifyOnFramingError"><b>notifyOnFramingError</b></a>
<pre>
public abstract void notifyOnFramingError(boolean enable)
</pre>
<dl>
<dd> Expresses interest in receiving notification when there is a framing error.
<p>
<dd><dl>
<dt> <b>Parameters:</b>
<dd> enable - <UL> <LI> true: enable notification <LI> false: disable notification </UL>
</dl></dd>
</dl>
<a name="notifyOnBreakInterrupt(boolean)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="notifyOnBreakInterrupt"><b>notifyOnBreakInterrupt</b></a>
<pre>
public abstract void notifyOnBreakInterrupt(boolean enable)
</pre>
<dl>
<dd> Expresses interest in receiving notification when there is a break interrupt on the line.
<p>
<dd><dl>
<dt> <b>Parameters:</b>
<dd> enable - <UL> <LI> true: enable notification <LI> false: disable notification </UL>
</dl></dd>
</dl>
<hr>
<pre>
<a href="packages.html">All Packages</a> <a href="tree.html">Class Hierarchy</a> <a href="Package-javax.comm.html">This Package</a> <a href="javax.comm.ParallelPortEvent.html#_top_">Previous</a> <a href="javax.comm.SerialPortEvent.html#_top_">Next</a> <a href="AllNames.html">Index</a></pre>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -