Class 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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