public class EscapeUtils extends Object
Constructor and Description |
---|
EscapeUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
escapeJson(String text)
Escapes Strings in a JSON structure
|
static String |
escapeJson(String text,
com.fasterxml.jackson.core.util.DefaultPrettyPrinter prettyPrinter) |
static String |
escapeJsonOrRaw(String text) |
static String |
escapeJsonOrRaw(String text,
com.fasterxml.jackson.core.util.DefaultPrettyPrinter prettyPrinter) |
static String |
escapeRaw(String text)
Escapes any text using the same rules as
escapeJson() does |
static String |
escapeRaw(String text,
com.fasterxml.jackson.core.util.DefaultPrettyPrinter prettyPrinter) |
public static String escapeJson(String text) throws IOException
text
- IOException
- if failed (when text is not not JSON)public static String escapeJson(String text, com.fasterxml.jackson.core.util.DefaultPrettyPrinter prettyPrinter) throws IOException
IOException
public static String escapeRaw(String text)
escapeJson() does
text
- public static String escapeRaw(String text, com.fasterxml.jackson.core.util.DefaultPrettyPrinter prettyPrinter)
Copyright © 2019 Hitachi Vantara. All rights reserved.