code: public static byte getValueLengthFromQualifier(final byte[] qualifier, 
        final int offset) {
      validateQualifier(qualifier, offset);    
      short length;
      if ((qualifier[offset] & Const.MS_BYTE_FLAG) == Const.MS_BYTE_FLAG) {
        length = (short) (qualifier[offset + 3] & Internal.LENGTH_MASK); 
      } else {
        length = (short) (qualifier[offset + 1] & Internal.LENGTH_MASK);
      }
      return (byte) (length + 1);
    }
docs: Returns the length of the value, in bytes, parsed from the qualifier
  @param qualifier The qualifier to parse
  @param offset An offset within the byte array
  @return The length of the value in bytes, from 1 to 8.
  @throws IllegalArgumentException if the qualifier is null or the offset falls
  outside of the qualifier array
  @since 2.0