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 驱动程序不允许指定操作时抛出

猜你喜欢

转载自www.cnblogs.com/BelieveFish/p/10239298.html
今日推荐