public static String dump(final InterfaceDescriptor descriptor){
  return String.format("Interface Descriptor:%n" + "  bLength %18d%n" + "  bDescriptorType %10d%n"+ "  bInterfaceNumber %9d%n"+ "  bAlternateSetting %8d%n"+ "  bNumEndpoints %12d%n"+ "  bInterfaceClass %10d %s%n"+ "  bInterfaceSubClass %7d%n"+ "  bInterfaceProtocol %7d%n"+ "  iInterface %15d%n",descriptor.bLength(),descriptor.bDescriptorType(),descriptor.bInterfaceNumber() & 0xff,descriptor.bAlternateSetting() & 0xff,descriptor.bNumEndpoints() & 0xff,descriptor.bInterfaceClass() & 0xff,getUSBClassName(descriptor.bInterfaceClass()),descriptor.bInterfaceSubClass() & 0xff,descriptor.bInterfaceProtocol() & 0xff,descriptor.iInterface() & 0xff);
}

public static String dump ( final InterfaceDescriptor descriptor ) { return String . format ( "Interface Descriptor:%n" + "  bLength %18d%n" + "  bDescriptorType %10d%n" + "  bInterfaceNumber %9d%n" + "  bAlternateSetting %8d%n" + "  bNumEndpoints %12d%n" + "  bInterfaceClass %10d %s%n" + "  bInterfaceSubClass %7d%n" + "  bInterfaceProtocol %7d%n" + "  iInterface %15d%n" , descriptor . bLength ( ) , descriptor . bDescriptorType ( ) , descriptor . bInterfaceNumber ( ) & 0xff , descriptor . bAlternateSetting ( ) & 0xff , descriptor . bNumEndpoints ( ) & 0xff , descriptor . bInterfaceClass ( ) & 0xff , getUSBClassName ( descriptor . bInterfaceClass ( ) ) , descriptor . bInterfaceSubClass ( ) & 0xff , descriptor . bInterfaceProtocol ( ) & 0xff , descriptor . iInterface ( ) & 0xff ) ; }
dumps the specified usb interface descriptor into a string and returns it .
