package usb.core; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import usb.core.device; public class Main { public static void main(String[]args) throws IOException { try { // Bootstrap by getting the USB Host from the HostFactory. Host host = HostFactory.getHost(); // Obtain a list of the USB buses available on the Host. Bus[] bus = host.getBusses(); int total_bus = bus.length; System.out.println(total_bus); // Traverse through all the USB buses. for (int i=0; i