public class QuotedQualityCSV extends QuotedCSV implements Iterable<String>
Modifier and Type | Field and Description |
---|---|
static Function<String,Integer> |
MOST_SPECIFIC
Function to apply a most specific MIME encoding secondary ordering
|
_keepQuotes, _values
Constructor and Description |
---|
QuotedQualityCSV()
Sorts values with equal quality according to the length of the value String.
|
QuotedQualityCSV(Function<String,Integer> secondaryOrdering)
Orders values with equal quality with the given function.
|
QuotedQualityCSV(String[] preferredOrder)
Sorts values with equal quality according to given order.
|
Modifier and Type | Method and Description |
---|---|
void |
addValue(String value)
Add and parse a value string(s)
|
List<String> |
getValues() |
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
|
protected void |
sort() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public QuotedQualityCSV()
public QuotedQualityCSV(String[] preferredOrder)
preferredOrder
- Array indicating the preferred order of known valuespublic void addValue(String value)
QuotedCSV
protected void parsedValue(StringBuffer buffer)
QuotedCSV
parsedValue
in class QuotedCSV
buffer
- Containing the trimmed value, which may be mutatedprotected void parsedParam(StringBuffer buffer, int valueLength, int paramName, int paramValue)
QuotedCSV
parsedParam
in class QuotedCSV
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 -1protected void sort()
Copyright © 1995–2017 Webtide. All rights reserved.