Top Description Fields Constructors Methods
javax.usb

public Class Version

extends Object
Class Inheritance

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.

Authors
Dan Streetman, E. Michael Maximilien

Field Summary

Modifier and TypeField and Description
private static final String
private static final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static String

Returns:

the version number of this API.
getApiVersion
()

Get the version number of this API.

public static String

Returns:

the version number of the implemented USB specification version.
getUsbVersion
()

Get the version number of the USB specification this API implements.

public static void
main(String[]
a String[] of arguments.
args
)

Prints out text to stdout (with appropriate version numbers).

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

VERSION_JAVAX_USBback to summary
private static final String VERSION_JAVAX_USB
VERSION_USB_SPECIFICATIONback to summary
private static final String VERSION_USB_SPECIFICATION

Constructor Detail

Versionback to summary
public Version()

Method Detail

getApiVersionback to summary
public static 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:String

the version number of this API.

getUsbVersionback to summary
public static 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:String

the version number of the implemented USB specification version.

mainback to summary
public static void main(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:String[]

a String[] of arguments.