javax.usb.examples
Class FindUsbInterface

java.lang.Object
  extended by javax.usb.examples.FindUsbInterface

public class FindUsbInterface
extends Object

Find a specific UsbInterface.

This finds a specific UsbInterface based on some of the interface's properties. This class should not be used except by other example code.

Author:
Dan Streetman

Constructor Summary
FindUsbInterface()
           
 
Method Summary
static byte getInterfaceClass()
          Get an interface class.
static List getUsbInterfacesWithInterfaceClass(UsbDevice usbDevice, byte interfaceClass)
          Get a List of all interfaces that match the specified interface class.
static void main(String[] argv)
           
static void parseArgv(String[] argv)
          Parse the parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FindUsbInterface

public FindUsbInterface()
Method Detail

main

public static void main(String[] argv)

getUsbInterfacesWithInterfaceClass

public static List getUsbInterfacesWithInterfaceClass(UsbDevice usbDevice,
                                                      byte interfaceClass)
Get a List of all interfaces that match the specified interface class.

Parameters:
usbDevice - The UsbDevice to check.
interfaceClass - The interface class to match.
Returns:
A List of any matching UsbInterfaces(s).

getInterfaceClass

public static byte getInterfaceClass()
Get an interface class.

Returns:
An interface class.

parseArgv

public static void parseArgv(String[] argv)
Parse the parameters.

Parameters:
argv - The command-line parameters.


Copyright © 2013 LSST. All Rights Reserved.