@Test void testUnquoteOnly() { assertEquals("abc", QuotedStringTokenizer.unquoteOnly("abc")); assertEquals("a\"c", QuotedStringTokenizer.unquoteOnly("\"a\\\"c\"")); assertEquals("a'c", QuotedStringTokenizer.unquoteOnly("\"a'c\"")); assertEquals("a\\n\\r\\t", QuotedStringTokenizer.unquoteOnly("\"a\\\\n\\\\r\\\\t\"")); assertEquals("ba\\uXXXXaaa", QuotedStringTokenizer.unquoteOnly("\"ba\\\\uXXXXaaa\"")); }
public static String unquoteOnly(String s) { return unquoteOnly(s, false); }
QuotedStringTokenizer extends StringTokenizer { public static String unquoteOnly(String s) { return unquoteOnly(s, false); } }
QuotedStringTokenizer extends StringTokenizer { public static String unquoteOnly(String s) { return unquoteOnly(s, false); } QuotedStringTokenizer(String str, String delimiter, boolean returnDelimiters, boolean returnQuotes);  QuotedStringTokenizer(String str, String delimiter, boolean returnDelimiters);  QuotedStringTokenizer(String str, String delimiter);  QuotedStringTokenizer(String str); }
QuotedStringTokenizer extends StringTokenizer { public static String unquoteOnly(String s) { return unquoteOnly(s, false); } QuotedStringTokenizer(String str, String delimiter, boolean returnDelimiters, boolean returnQuotes);  QuotedStringTokenizer(String str, String delimiter, boolean returnDelimiters);  QuotedStringTokenizer(String str, String delimiter);  QuotedStringTokenizer(String str); static String quoteIfNeeded(String s, String delim); static String quote(String s); static void quoteOnly(Appendable buffer, String input); static void quote(Appendable buffer, String input); static String unquoteOnly(String s); static String unquoteOnly(String s, boolean lenient); static String unquote(String s); static String unquote(String s, boolean lenient); static boolean isQuoted(String s); @Override boolean hasMoreTokens(); @Override String nextToken(); @Override String nextToken(String delim); @Override boolean hasMoreElements(); @Override Object nextElement(); @Override int countTokens(); boolean getDouble(); void setDouble(boolean d); boolean getSingle(); void setSingle(boolean single); }
QuotedStringTokenizer extends StringTokenizer { public static String unquoteOnly(String s) { return unquoteOnly(s, false); } QuotedStringTokenizer(String str, String delimiter, boolean returnDelimiters, boolean returnQuotes);  QuotedStringTokenizer(String str, String delimiter, boolean returnDelimiters);  QuotedStringTokenizer(String str, String delimiter);  QuotedStringTokenizer(String str); static String quoteIfNeeded(String s, String delim); static String quote(String s); static void quoteOnly(Appendable buffer, String input); static void quote(Appendable buffer, String input); static String unquoteOnly(String s); static String unquoteOnly(String s, boolean lenient); static String unquote(String s); static String unquote(String s, boolean lenient); static boolean isQuoted(String s); @Override boolean hasMoreTokens(); @Override String nextToken(); @Override String nextToken(String delim); @Override boolean hasMoreElements(); @Override Object nextElement(); @Override int countTokens(); boolean getDouble(); void setDouble(boolean d); boolean getSingle(); void setSingle(boolean single);  }