@Test public void testEscape() { assertEquals(DelimiterUtil.escape("MTV Music", ' '), "MTV\\ Music"); assertEquals(DelimiterUtil.escape("MTV Music", ' '), "MTV\\ \\ Music"); assertEquals(DelimiterUtil.escape("MTV,Music", ','), "MTV\\,Music"); assertEquals(DelimiterUtil.escape("MTV,,Music", ','), "MTV\\,\\,Music"); assertEquals(DelimiterUtil.escape("MTV Music", '+'), "MTV Music"); }
public static String escape(String value, char delimiter) { return value.replace("" + delimiter, "\\" + delimiter); }
DelimiterUtil { public static String escape(String value, char delimiter) { return value.replace("" + delimiter, "\\" + delimiter); } }
DelimiterUtil { public static String escape(String value, char delimiter) { return value.replace("" + delimiter, "\\" + delimiter); }  }
DelimiterUtil { public static String escape(String value, char delimiter) { return value.replace("" + delimiter, "\\" + delimiter); }  static String escape(String value, char delimiter); static String unescape(String value, char delimiter); static String[] split(String value, char delimiter); }
DelimiterUtil { public static String escape(String value, char delimiter) { return value.replace("" + delimiter, "\\" + delimiter); }  static String escape(String value, char delimiter); static String unescape(String value, char delimiter); static String[] split(String value, char delimiter);  }