Package org.jnode.driver.bus.scsi.cdb.mmc

Examples of org.jnode.driver.bus.scsi.cdb.mmc.CDBRead10


    }

    private void readBlocks(CapacityData cap, int lba, int nrBlocks)
        throws SCSIException, TimeoutException, InterruptedException {
        final byte[] data = new byte[nrBlocks * cap.getBlockLength()];
        final CDB cdb = new CDBRead10(lba, nrBlocks);
        final int len = api.executeCommand(cdb, data, 0, 5000);
        System.out.println("Read " + NumberUtils.hex(data, 0, len));
    }
View Full Code Here

TOP

Related Classes of org.jnode.driver.bus.scsi.cdb.mmc.CDBRead10

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.