Class ScsiInquiryResponse
- java.lang.Object
-
- com.github.mjdev.libaums.driver.scsi.commands.ScsiInquiryResponse
-
public class ScsiInquiryResponse extends java.lang.ObjectThis class represents the response of a SCSI Inquiry. It holds various information about the mass storage device.This response is received in the data phase.
- See Also:
ScsiInquiry
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description bytegetPeripheralDeviceType()The type of the mass storage device.bytegetPeripheralQualifier()bytegetResponseDataFormat()bytegetSpcVersion()This method returns the version of the SCSI Primary Commands (SPC) standard the device supports.booleanisRemovableMedia()static ScsiInquiryResponseread(java.nio.ByteBuffer buffer)Constructs a new object with the given data.java.lang.StringtoString()
-
-
-
Method Detail
-
read
public static ScsiInquiryResponse read(java.nio.ByteBuffer buffer)
Constructs a new object with the given data.- Parameters:
buffer- The data where theScsiInquiryResponse()is located.- Returns:
- The parsed
ScsiInquiryResponse().
-
getPeripheralQualifier
public byte getPeripheralQualifier()
- Returns:
- Zero if a device is connected to the unit.
-
getPeripheralDeviceType
public byte getPeripheralDeviceType()
The type of the mass storage device.- Returns:
- Zero for a direct access block device.
-
isRemovableMedia
public boolean isRemovableMedia()
- Returns:
- True if the media can be removed (eg. card reader).
-
getSpcVersion
public byte getSpcVersion()
This method returns the version of the SCSI Primary Commands (SPC) standard the device supports.- Returns:
- Version of the SPC standard
-
getResponseDataFormat
public byte getResponseDataFormat()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-