Class UonUtils

java.lang.Object
org.apache.juneau.uon.UonUtils

public final class UonUtils extends Object
Utility methods for the UON and UrlEncoding serializers and parsers.
See Also:
  • Constructor Details

  • Method Details

    • needsQuotes

      public static final boolean needsQuotes(String s)
      Returns true if the specified string needs to be quoted per UON notation.

      For example, strings that start with '(' or '@' or look like boolean or numeric values need to be quoted.

      Parameters:
      s - The string to test.
      Returns:
      true if the specified string needs to be quoted per UON notation.