public class UsbDeviceImpl extends AbstractOshiJsonObject implements UsbDevice
| Constructor and Description |
|---|
UsbDeviceImpl(UsbDevice usbDevice)
Creates a new platform-specific USBDevice object wrapping the provided
argument
|
| Modifier and Type | Method and Description |
|---|---|
UsbDevice[] |
getConnectedDevices()
Other devices connected to this hub
|
String |
getName()
Name of the USB device
|
String |
getProductId()
Product ID of the USB device
|
String |
getSerialNumber()
Serial number of the USB device
|
String |
getVendor()
Vendor that manufactured the USB device
|
String |
getVendorId()
ID of the vendor that manufactured the USB device
|
javax.json.JsonObject |
toJSON(Properties properties)
Returns this object as a
JsonObject. |
String |
toString() |
toCompactJSON, toCompactJSON, toJSON, toPrettyJSON, toPrettyJSONclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waittoCompactJSON, toCompactJSON, toJSON, toPrettyJSON, toPrettyJSONpublic UsbDeviceImpl(UsbDevice usbDevice)
usbDevice - a platform-specific USBDevice objectpublic String getName()
public String getVendor()
public String getVendorId()
getVendorId in interface UsbDevicepublic String getProductId()
getProductId in interface UsbDevicepublic String getSerialNumber()
getSerialNumber in interface UsbDevicepublic UsbDevice[] getConnectedDevices()
getConnectedDevices in interface UsbDevicepublic javax.json.JsonObject toJSON(Properties properties)
JsonObject. The provided
properties will be set on this object to configure the type of
information returned using this and future invocations of
OshiJsonObject.toJSON().toJSON in interface OshiJsonObjectproperties - Properties to configure returned resultsJsonObject for this class.public String toString()
toString in class AbstractOshiJsonObjectCopyright © 2010–2017 oshi. All rights reserved.