javax.comm的API

在javax.comm下有13个类和接口,分别是

 

4个接口:

CommDriver 可负载设备(the loadable device)驱动程序接口的一部分

CommPortOwnershipListener 传递各种通讯端口的所有权事件

ParallelPortEventListener 传递并行端口事件

SerialPortEventListener 传递串行端口事件

 

6个类 :

CommPort 通讯端口

CommPortIdentifier通讯端口管理

ParallelPort 并行通讯端口

ParallelPortEvent 并行端口事件

SerialPort RS-232串行通讯端口

SerialPortEvent 串行端口事件

 

3个异常类:

NoSuchPortException 当驱动程序不能找到指定端口时抛出

PortInUseException 当碰到指定端口正在使用中时抛出

UnsupportedCommOperationException 驱动程序不允许指定操作时抛出

posted @ 2019-01-08 15:35  894316728  阅读(384)  评论(0编辑  收藏  举报