Enum StringEscapePolicy

    • Enum Constant Detail

      • ALL

        public static final StringEscapePolicy ALL
        Escapes all JSON special characters and Unicode.
      • ALL_BUT_SLASH

        public static final StringEscapePolicy ALL_BUT_SLASH
        Escapes all JSON special characters and Unicode but slash('/').
      • ALL_BUT_UNICODE

        public static final StringEscapePolicy ALL_BUT_UNICODE
        Escapes all JSON special characters but Unicode.
      • ALL_BUT_SLASH_AND_UNICODE

        public static final StringEscapePolicy ALL_BUT_SLASH_AND_UNICODE
        Escapes all JSON special characters but slash('/') and Unicode.
      • DEFAULT

        public static final StringEscapePolicy DEFAULT
        Escapes all JSON special characters but slash('/') and Unicode.
    • Method Detail

      • values

        public static StringEscapePolicy[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (StringEscapePolicy c : StringEscapePolicy.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static StringEscapePolicy valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null