Package org.apache.juneau.uon
Class UonUtils
java.lang.Object
org.apache.juneau.uon.UonUtils
Utility methods for the UON and UrlEncoding serializers and parsers.
See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Returnstrue if the specified string needs to be quoted per UON notation.
-
Constructor Details
-
UonUtils
public UonUtils()
-
-
Method Details
-
needsQuotes
Returnstrue 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.
-