public class Version
extends java.lang.Object
This maintains the version number of the current javax.usb API specification and the supported USB specification version number.
| Constructor and Description |
|---|
Version() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getApiVersion()
Get the version number of this API.
|
static java.lang.String |
getUsbVersion()
Get the version number of the USB specification this API implements.
|
static void |
main(java.lang.String[] args)
Prints out text to stdout (with appropriate version numbers).
|
public static void main(java.lang.String[] args)
The specific text printed is:
javax.usb API version <getApiVersion()> USB specification version <getUsbVersion()>
args - a String[] of arguments.public static java.lang.String getApiVersion()
The format of this is <major>.<minor>[.<revision>]
The revision number is optional; a missing revision number (i.e., version X.X) indicates the revision number is zero (i.e., version X.X.0).
public static java.lang.String getUsbVersion()
The formt of this is <major>.<minor>[.<revision>]
This should correspond with a released USB specification hosted by the USB organization website. The revision number will only be present if the USB specification contains it.