public SenseData decode(ByteBuffer buffer) throws IOException
{
DataInputStream in = new DataInputStream(new ByteBufferInputStream(buffer));
int b1 = in.readUnsignedByte();
ResponseCode code = ResponseCode.valueOf((byte) (b1 & 0x7F)); // throws IOException
SenseData sense = null;
switch (code)
{