Re: [javax-usb-devel] Read USB device

2007-05-29 Thread Dan Streetman
Again, you are on the wrong mailing list. This list is for javax.usb. > > Regard > > > - Original Message > From: Dan Streetman <[EMAIL PROTECTED]> > To: Yongsheng Yang <[EMAIL PROTECTED]> > Cc: javax-usb-devel@lists.sourceforge.net > Sent: Mon

Re: [javax-usb-devel] Read USB device

2007-05-29 Thread Yongsheng Yang
ve me some information how the sdb1 created? Regard - Original Message From: Dan Streetman <[EMAIL PROTECTED]> To: Yongsheng Yang <[EMAIL PROTECTED]> Cc: javax-usb-devel@lists.sourceforge.net Sent: Monday, May 28, 2007 8:17:42 AM Subject: Re: [javax-usb-devel] Read USB devi

Re: [javax-usb-devel] Read USB device

2007-05-28 Thread Dan Streetman
Unless you want to implement the entire USB mass storage layer, you don't want to use javax.usb to read your block device. You should instead just use normal file I/O, like a FileReader or some other reader. For example: FileReader reader = new FileReader(new File("/dev/sdb1")); reader.read(buf