class QualityConverter {

    public static short toShort(final byte[] value) {

        final byte[] ba = reverseAllBitsAndBytes(value);
        final ByteBuffer bb = ByteBuffer.wrap(ba);
        final short s = bb.getShort();

        LOGGER.debug("Converting byte array [{}], reversed [{}] into short [{}]", toString(value), toString(ba), s);
        return s;
    }

    private  QualityConverter();

}