public class QuotedCSV extends Object implements Iterable<String>
Modifier and Type | Field and Description |
---|---|
protected boolean |
_keepQuotes |
protected List<String> |
_values |
Constructor and Description |
---|
QuotedCSV(boolean keepQuotes,
String... values) |
QuotedCSV(String... values) |
Modifier and Type | Method and Description |
---|---|
void |
addValue(String value)
Add and parse a value string(s)
|
List<String> |
getValues() |
boolean |
isEmpty() |
Iterator<String> |
iterator() |
protected void |
parsedParam(StringBuffer buffer,
int valueLength,
int paramName,
int paramValue)
Called when a parameter has been parsed
|
protected void |
parsedValue(StringBuffer buffer)
Called when a value has been parsed
|
int |
size() |
static String |
unquote(String s) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public QuotedCSV(String... values)
public QuotedCSV(boolean keepQuotes, String... values)
public void addValue(String value)
value
- A value that may contain one or more Quoted CSV items.protected void parsedValue(StringBuffer buffer)
buffer
- Containing the trimmed value, which may be mutatedprotected void parsedParam(StringBuffer buffer, int valueLength, int paramName, int paramValue)
buffer
- Containing the trimmed value and all parameters, which may be mutatedvalueLength
- The length of the valueparamName
- The index of the start of the parameter just parsedparamValue
- The index of the start of the parameter value just parsed, or -1public int size()
public boolean isEmpty()
Copyright © 1995-2016 Webtide. All Rights Reserved.