@Override public XaCommand readCommand(ReadableByteChannel byteChannel, ByteBuffer buffer) throws IOException { short dataSize = IoPrimitiveUtils.readShort(byteChannel, buffer); IoPrimitiveUtils.readBytes(byteChannel, new byte[dataSize]); return new FixedSizeXaCommand(dataSize); }