public final class StandardInquiryData extends Object implements IResponseData
ScsiOperationCode.INQUIRY command.
This class uses the singleton pattern since the returned standard inquiry data will always be the same.
Not all fields in the serialized form of the singleton have a corresponding member variable, only those fields containing ASCII information.
| Modifier and Type | Method and Description |
|---|---|
static StandardInquiryData |
getInstance()
Returns the one and only
StandardInquiryData object. |
void |
serialize(ByteBuffer byteBuffer,
int index)
Inserts a serialized representation of the object into the specified
ByteBuffer. |
int |
size()
Returns the size in bytes of the object's serialized representation.
|
public static StandardInquiryData getInstance()
StandardInquiryData object.StandardInquiryData objectpublic void serialize(ByteBuffer byteBuffer, int index)
ISerializableByteBuffer. The serialized object
will occupy the byte positions from index to index + ISerializable.size() - 1.serialize in interface ISerializablebyteBuffer - where to insert the serialized object representationindex - the position of the first byte of the serialized object in the ByteBufferpublic int size()
ISerializablesize in interface ISerializableCopyright © 2013 University of Konstanz, Distributed Systems Group. All Rights Reserved.