Package au.com.dius.pact.consumer.dsl
Class QuoteUtil
- java.lang.Object
-
- au.com.dius.pact.consumer.dsl.QuoteUtil
-
public final class QuoteUtil extends java.lang.Object
Util class for dealing with Json format
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
convert(java.lang.String text)
Reads the input text with possible single quotes as delimiters and returns a String correctly formatted.
-
-
-
Method Detail
-
convert
public static java.lang.String convert(java.lang.String text)
Reads the input text with possible single quotes as delimiters and returns a String correctly formatted.For convenience, single quotes as well as double quotes are allowed to delimit strings. If single quotes are used, any quotes, single or double, in the string must be escaped (prepend with a '\').
- Parameters:
text
- the input data- Returns:
- String without single quotes
-
-