|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.usb.Version
Version class that prints the current version numbers.
This maintains the version number of the current javax.usb API specification and the supported USB specification version number.
Constructor Summary | |
Version()
|
Method Summary | |
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). |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Version()
Method Detail |
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.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |