@Test public void testCommaInQuotes() throws Exception { List<String> l = QuotedStringTokenizer.builder().addDelimiterChars(",").buildList("location1,byon:(hosts=\"loc2,loc3\"),location4"); Assert.assertEquals(Arrays.asList("location1", "byon:(hosts=\"loc2,loc3\")", "location4"), l); }
public static Builder builder() { return new Builder(); }
QuotedStringTokenizer { public static Builder builder() { return new Builder(); } }
QuotedStringTokenizer { public static Builder builder() { return new Builder(); } QuotedStringTokenizer(String stringToTokenize);  QuotedStringTokenizer(String stringToTokenize, boolean includeQuotes);  QuotedStringTokenizer(String stringToTokenize, String quoteChars, boolean includeQuotes);  QuotedStringTokenizer(String stringToTokenize, String quoteChars, boolean includeQuotes, String delimiters, boolean includeDelimiters); }
QuotedStringTokenizer { public static Builder builder() { return new Builder(); } QuotedStringTokenizer(String stringToTokenize);  QuotedStringTokenizer(String stringToTokenize, boolean includeQuotes);  QuotedStringTokenizer(String stringToTokenize, String quoteChars, boolean includeQuotes);  QuotedStringTokenizer(String stringToTokenize, String quoteChars, boolean includeQuotes, String delimiters, boolean includeDelimiters); static Builder builder(); synchronized boolean hasMoreTokens(); synchronized String nextToken(); String unquoteToken(String word); String quoteToken(String unescapedText); static boolean hasOpenQuote(String stringToCheck); static boolean hasOpenQuote(String stringToCheck, String quoteChars); List<String> remainderAsList(); }
QuotedStringTokenizer { public static Builder builder() { return new Builder(); } QuotedStringTokenizer(String stringToTokenize);  QuotedStringTokenizer(String stringToTokenize, boolean includeQuotes);  QuotedStringTokenizer(String stringToTokenize, String quoteChars, boolean includeQuotes);  QuotedStringTokenizer(String stringToTokenize, String quoteChars, boolean includeQuotes, String delimiters, boolean includeDelimiters); static Builder builder(); synchronized boolean hasMoreTokens(); synchronized String nextToken(); String unquoteToken(String word); String quoteToken(String unescapedText); static boolean hasOpenQuote(String stringToCheck); static boolean hasOpenQuote(String stringToCheck, String quoteChars); List<String> remainderAsList(); static String DEFAULT_QUOTE_CHARS; final static String DEFAULT_DELIMITERS; }