public class FixedFormatSenseData extends SenseData
SenseDataFormat.FIXEDadditionalSenseCodeAndQualifier, errorType, responseCode, senseDataFormat, senseKey| Constructor and Description |
|---|
FixedFormatSenseData(boolean valid,
ErrorType errorType,
boolean fileMark,
boolean endOfMedium,
boolean incorrectLengthIndicator,
SenseKey senseKey,
FourByteInformation information,
FourByteInformation commandSpecificInformation,
AdditionalSenseCodeAndQualifier additionalSenseCodeAndQualifier,
byte fieldReplaceableUnitCode,
SenseKeySpecificData senseKeySpecificData,
AdditionalSenseBytes additionalSenseBytes)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getAdditionalSenseLength() |
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.
|
getReponseCodeForpublic FixedFormatSenseData(boolean valid,
ErrorType errorType,
boolean fileMark,
boolean endOfMedium,
boolean incorrectLengthIndicator,
SenseKey senseKey,
FourByteInformation information,
FourByteInformation commandSpecificInformation,
AdditionalSenseCodeAndQualifier additionalSenseCodeAndQualifier,
byte fieldReplaceableUnitCode,
SenseKeySpecificData senseKeySpecificData,
AdditionalSenseBytes additionalSenseBytes)
valid - errorType - the type of error that necessitated the sending of sense datafileMark - endOfMedium - incorrectLengthIndicator - senseKey - information - commandSpecificInformation - additionalSenseCodeAndQualifier - fieldReplaceableUnitCode - senseKeySpecificData - additionalSenseBytes - public void serialize(ByteBuffer byteBuffer, int index)
ISerializableByteBuffer. The serialized object
will occupy the byte positions from index to index + ISerializable.size() - 1.byteBuffer - where to insert the serialized object representationindex - the position of the first byte of the serialized object in the ByteBufferpublic final int getAdditionalSenseLength()
public int size()
ISerializableCopyright © 2013 University of Konstanz, Distributed Systems Group. All Rights Reserved.