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(buffer, offset, length); On 5/26/07, Yongsheng Yang <[EMAIL PROTECTED]> wrote: > > Hi: > > After USB key inserted, the new drive will be mounted as sdb1_removable (I > am using Slax). > I want to use javax-usb API to read the block device (/dev/sdb1) byte by > byte and calculate the CRC byte. > There is any sample Java code for this purpose? > > Thanks! > > > ________________________________ > Looking for a deal? Find great prices on flights and hotels with Yahoo! > FareChase. > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > javax-usb-devel mailing list > javax-usb-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/javax-usb-devel > > ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ javax-usb-devel mailing list javax-usb-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/javax-usb-devel