// Path: src/main/java/com/felhr/usbmassstorageforandroid/utilities/HexUtil.java
// public class HexUtil
// {
//     private static final String HEXES = "0123456789ABCDEF";
//     private static final String HEX_INDICATOR = "0x";
//     private static final String SPACE = " ";
// 
//     private HexUtil()
//     {
// 
//     }
// 
//     public static String hexToString(byte[] data)
//     {
//         if(data != null)
//         {
//             StringBuilder hex = new StringBuilder(2*data.length);
//             for(int i=0;i<=data.length-1;i++)
//             {
//                 byte dataAtIndex = data[i];
//                 hex.append(HEX_INDICATOR);
//                 hex.append(HEXES.charAt((dataAtIndex & 0xF0) >> 4))
//                         .append(HEXES.charAt((dataAtIndex & 0x0F)));
//                 hex.append(SPACE);
//             }
//             return hex.toString();
//         }else
//         {
//             return null;
//         }
//     }
// }


import android.os.Bundle;
import android.util.Log;
import com.felhr.usbmassstorageforandroid.utilities.HexUtil;
package com.felhr.usbmassstorageforandroid.scsi;



/**
 * Created by Felipe Herranz(felhr85@gmail.com) on 22/12/14.
 */
public class SCSIModeSense10Response extends SCSIResponse
{
    private int modeDataLength;
    private int mediumType;
    private int deviceSpecificParameter;
    private boolean longLba;
    private int blockDescriptorLength;

    private SCSIModeSense10Response()
    {

    }

    public static SCSIModeSense10Response getResponse(byte[] data)
    {
// Path: src/main/java/com/felhr/usbmassstorageforandroid/utilities/HexUtil.java
// public class HexUtil
// {
//     private static final String HEXES = "0123456789ABCDEF";
//     private static final String HEX_INDICATOR = "0x";
//     private static final String SPACE = " ";
// 
//     private HexUtil()
//     {
// 
//     }
// 
//     public static String hexToString(byte[] data)
//     {
//         if(data != null)
//         {
//             StringBuilder hex = new StringBuilder(2*data.length);
//             for(int i=0;i<=data.length-1;i++)
//             {
//                 byte dataAtIndex = data[i];
//                 hex.append(HEX_INDICATOR);
//                 hex.append(HEXES.charAt((dataAtIndex & 0xF0) >> 4))
//                         .append(HEXES.charAt((dataAtIndex & 0x0F)));
//                 hex.append(SPACE);
//             }
//             return hex.toString();
//         }else
//         {
//             return null;
//         }
//     }
// }


// Path: src/main/java/com/felhr/usbmassstorageforandroid/scsi/SCSIModeSense10Response.java
import android.os.Bundle;
import android.util.Log;
import com.felhr.usbmassstorageforandroid.utilities.HexUtil;

package com.felhr.usbmassstorageforandroid.scsi;



/**
 * Created by Felipe Herranz(felhr85@gmail.com) on 22/12/14.
 */
public class SCSIModeSense10Response extends SCSIResponse
{
    private int modeDataLength;
    private int mediumType;
    private int deviceSpecificParameter;
    private boolean longLba;
    private int blockDescriptorLength;

    private SCSIModeSense10Response()
    {

    }

    public static SCSIModeSense10Response getResponse(byte[] data)
    {
        Log.i("Buffer state", "Data to host: " + HexUtil.hexToString(data));