Class CommaSeparatedVariableParser

public final class CommaSeparatedVariableParser extends ListParser
Parses out strings separated by commas.


  • It'll not trim the elements (it'll not remove whitespace)
  • It is able to handle quotes like "a", 'b', "b,c" etc..
  • But no escapes like "c\"d"
  • Empty list elements like "a,," are not supported. It'll return the "a" only.
Jonathan Locke
  • Constructor Details

    • CommaSeparatedVariableParser

      Construct a new parser with parameter 'input' to be parsed. Base classes provide the method to access the elements of the input parsed.
      input - to parse