com.ibm.jusb
Class Version

java.lang.Object
  extended by com.ibm.jusb.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 Platform-Independent Reference Implementation. The RI version number does not have to match the API version number.

Author:
Dan Streetman

Constructor Summary
Version()
           
 
Method Summary
static java.lang.String getApiVersion()
          Get the version number of the API that this implements.
static java.lang.String getRiVersion()
          Get the version number of this RI.
static void main(java.lang.String[] args)
          Print 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)
Print text to stdout (with appropriate version numbers).

The text that will be printed is:

 javax.usb Required API version %lt;getApiVersion()> (or later)
 javax.usb Platform-Independent RI version <getRiVersion()>
 

Parameters:
args - a String[] of arguments.

getApiVersion

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

This should match a version number found in javax.usb.Version.

Returns:
The version number of the API this implements.

getRiVersion

public static java.lang.String getRiVersion()
Get the version number of this RI.

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 Platform-Independent RI.