@Test public void escapeChars() throws Exception { assertEquals(StringEscapeUtilities.escapeChars("abcdeaaaca\\aaa", "abde".toCharArray()), "\\a\\bc\\d\\e\\a\\a\\ac\\a\\a\\a\\a"); }
@NotNull public static String escapeChars(@NotNull final String string, final char[] toEscape) { String toReturn = string; for (char character : toEscape) { toReturn = escapeChar(toReturn, character); } return toReturn; }
StringEscapeUtilities extends StringEscapeUtils { @NotNull public static String escapeChars(@NotNull final String string, final char[] toEscape) { String toReturn = string; for (char character : toEscape) { toReturn = escapeChar(toReturn, character); } return toReturn; } }
StringEscapeUtilities extends StringEscapeUtils { @NotNull public static String escapeChars(@NotNull final String string, final char[] toEscape) { String toReturn = string; for (char character : toEscape) { toReturn = escapeChar(toReturn, character); } return toReturn; } private  StringEscapeUtilities(); }
StringEscapeUtilities extends StringEscapeUtils { @NotNull public static String escapeChars(@NotNull final String string, final char[] toEscape) { String toReturn = string; for (char character : toEscape) { toReturn = escapeChar(toReturn, character); } return toReturn; } private  StringEscapeUtilities(); @NotNull static String escapeChar(@NotNull final String string, final char toEscape); @NotNull static String unescapeChar(@NotNull final String string, final char toUnescape); @NotNull static String escapeChars(@NotNull final String string, final char[] toEscape); @NotNull static String unescapeChars(@NotNull final String string, final char[] toUnescape); @NotNull static String removeEscapedChar(@NotNull final String string, final char toRemove); @NotNull static String removeEscapedChars(@NotNull final String string, final char[] toRemove); }
StringEscapeUtilities extends StringEscapeUtils { @NotNull public static String escapeChars(@NotNull final String string, final char[] toEscape) { String toReturn = string; for (char character : toEscape) { toReturn = escapeChar(toReturn, character); } return toReturn; } private  StringEscapeUtilities(); @NotNull static String escapeChar(@NotNull final String string, final char toEscape); @NotNull static String unescapeChar(@NotNull final String string, final char toUnescape); @NotNull static String escapeChars(@NotNull final String string, final char[] toEscape); @NotNull static String unescapeChars(@NotNull final String string, final char[] toUnescape); @NotNull static String removeEscapedChar(@NotNull final String string, final char toRemove); @NotNull static String removeEscapedChars(@NotNull final String string, final char[] toRemove);  }