javax.usb
Class Version

java.lang.Object
  extended by javax.usb.Version

public class Version
extends java.lang.Object

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.

Author:
Dan Streetman, E. Michael Maximilien

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

Version

public Version()
Method Detail

main

public static void main(java.lang.String[] args)
Prints out text to stdout (with appropriate version numbers).

The specific text printed is:

 javax.usb API version <getApiVersion()>
 USB specification version <getUsbVersion()>
 

Parameters:
args - a String[] of arguments.

getApiVersion

public static java.lang.String getApiVersion()
Get the version number of this API.

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).

Returns:
the version number of this API.

getUsbVersion

public static java.lang.String getUsbVersion()
Get the version number of the USB specification this API implements.

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.

Returns:
the version number of the implemented USB specification version.