public class AcceptEncoding extends CharacterSeparatedList
Modifier and Type | Field and Description |
---|---|
protected QualityArgument[] |
encodings
Array of
QualityArgument s. |
CR, currentString, HT, LF, separator, SP
Constructor and Description |
---|
AcceptEncoding()
Creates a new instance of
AcceptEncoding with a default separator (comma character ","). |
Modifier and Type | Method and Description |
---|---|
StringBuilder |
generate(StringBuilder sb)
Not implemented.
|
QualityArgument[] |
getEncodings()
Returns the previously parsed array of
QualityArgument s. |
void |
initializeNbTokens(int nbTokens)
Sets the size of the array for storing parsed
QualityArgument s. |
void |
newToken(int index,
int start,
int stop)
|
endParse, parse, parse
@Nullable protected QualityArgument[] encodings
QualityArgument
s.public AcceptEncoding()
AcceptEncoding
with a default separator (comma character ",").public StringBuilder generate(StringBuilder sb)
generate
in class CharacterSeparatedList
sb
- the StringBuffer
RuntimeException
to signal that the function is not implemented.@Nullable public QualityArgument[] getEncodings()
QualityArgument
s.public void initializeNbTokens(int nbTokens)
QualityArgument
s.initializeNbTokens
in class CharacterSeparatedList
nbTokens
- the size of the array for storing the parsed QualityArgument
s.public void newToken(int index, int start, int stop)
newToken
in class CharacterSeparatedList
index
- the index of the QualityArgument
to be parsedstart
- the start index in the current string to parse fromstop
- the end index in the current string to parse from