| Modifier and Type | Method and Description |
|---|---|
| public List | Returns: All devices currently attached to this hub.Get all attached UsbDevices. |
| public byte | Returns: The number of (downstream) ports for this hub.Get the number of (downstream) ports this hub has. |
| public UsbPort | Returns: The specified port, or null.The number (1-based) of the port to get. number)Get a specific UsbPort by port number. |
| public List | |
| public boolean |
| getAttachedUsbDevices | back to summary |
|---|---|
| public List Get all attached UsbDevices. The List will be unmodifiable.
| |
| getNumberOfPorts | back to summary |
|---|---|
| public byte getNumberOfPorts() Get the number of (downstream) ports this hub has. This is only the number of ports on the hub, not all ports are necessarily enabled, available, usable, or in some cases physically present. This only represents the number of downstream ports the hub claims to have. Note that all hubs have exactly one upstream port, which allows it to connect to the system (or another upstream hub). There is also a internal port which is generally only used by the hub itself. See the USB 1.1 specification sec 11.4 for details on the internal port, sec 11.5 for details on the downstream ports, and sec 11.6 for details on the upstream port.
| |
| getUsbPort | back to summary |
|---|---|
| public UsbPort getUsbPort(byte number) Get a specific UsbPort by port number. This gets the UsbPort with the specified number. The port numbering is 1-based (not 0-based), and the max port number is 255. See the USB 1.1 specification table 11.8 offset 7. If the specified port does not exist, this returns null.
| |
| getUsbPorts | back to summary |
|---|---|
| public List Get all the ports this hub has. The port numbering is 1-based. The List will be unmodifiable.
| |
| isRootUsbHub | back to summary |
|---|---|
| public boolean isRootUsbHub() If this is the
| |