public static Boolean canStringBeInlineEncoded(String skey){
  if (skey.length() > getMaxInlineStringKey(MAX_LONGS_USED_FOR_STRING_KEY,true)) {
    return null;
  }
  if (isByteEncodingOk(skey)) {
    return Boolean.TRUE;
  }
 else {
    if (skey.length() > getMaxInlineStringKey(MAX_LONGS_USED_FOR_STRING_KEY,false)) {
      return null;
    }
 else {
      return Boolean.FALSE;
    }
  }
}

public static Boolean canStringBeInlineEncoded ( String skey ) { if ( skey . length ( ) > getMaxInlineStringKey ( MAX_LONGS_USED_FOR_STRING_KEY , true ) ) { return null ; } if ( isByteEncodingOk ( skey ) ) { return Boolean . TRUE ; } else { if ( skey . length ( ) > getMaxInlineStringKey ( MAX_LONGS_USED_FOR_STRING_KEY , false ) ) { return null ; } else { return Boolean . FALSE ; } } }
return null if the given string can not be encoded inline . return true if the given string can be encoded inline as bytes . return false if the given string can be encoded inline as chars .
