Class QuotedCSV
java.lang.Object
org.eclipse.jetty.http.QuotedCSVParser
org.eclipse.jetty.http.QuotedCSV
- Direct Known Subclasses:
QuotedQualityCSV
Implements a quoted comma separated list of values
in accordance with RFC7230.
OWS is removed and quoted characters ignored for parsing.
- See Also:
-
Field Summary
FieldsFields inherited from class QuotedCSVParser
_keepQuotes, DELIMITERS, LIST_TOKENIZER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasString()booleanisEmpty()iterator()static StringJoin a list into Quoted CSV stringstatic voidjoin(StringBuilder builder, List<String> values) Join a list into Quoted CSV StringBuilderstatic StringJoin a list into Quoted CSV stringprotected voidparsedValueAndParams(StringBuilder buffer) Called when a value and it's parameters has been parsedintsize()toString()Methods inherited from class QuotedCSVParser
addValue, parsedParam, parsedValue, quote, quoteIfNeeded, unquoteMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Field Details
-
_values
-
-
Constructor Details
-
QuotedCSV
-
QuotedCSV
-
-
Method Details
-
join
-
join
-
join
Join a list into Quoted CSV StringBuilder- Parameters:
builder- A builder to join the list intovalues- A list of values
-
parsedValueAndParams
Description copied from class:QuotedCSVParserCalled when a value and it's parameters has been parsed- Overrides:
parsedValueAndParamsin classQuotedCSVParser- Parameters:
buffer- Containing the trimmed value and parameters
-
size
public int size() -
isEmpty
public boolean isEmpty() -
getValues
-
iterator
-
asString
-
toString
-