@Contract(threading=IMMUTABLE) public class BasicHeaderValueParser extends Object implements HeaderValueParser
HeaderValueParser implementation.| 限定符和类型 | 字段和说明 |
|---|---|
static BasicHeaderValueParser |
INSTANCE |
| 构造器和说明 |
|---|
BasicHeaderValueParser() |
| 限定符和类型 | 方法和说明 |
|---|---|
HeaderElement[] |
parseElements(CharSequence buffer,
ParserCursor cursor)
Parses a header value into elements.
|
HeaderElement |
parseHeaderElement(CharSequence buffer,
ParserCursor cursor)
Parses a single header element.
|
NameValuePair |
parseNameValuePair(CharSequence buffer,
ParserCursor cursor)
Parses a name=value specification, where the = and value are optional.
|
NameValuePair[] |
parseParameters(CharSequence buffer,
ParserCursor cursor)
Parses a list of name-value pairs.
|
public static final BasicHeaderValueParser INSTANCE
public HeaderElement[] parseElements(CharSequence buffer, ParserCursor cursor)
HeaderValueParserRuntimeException.parseElements 在接口中 HeaderValueParserbuffer - buffer holding the header value to parsecursor - the parser cursor containing the current position and
the bounds within the buffer for the parsing operationpublic HeaderElement parseHeaderElement(CharSequence buffer, ParserCursor cursor)
HeaderValueParserparseHeaderElement 在接口中 HeaderValueParserbuffer - buffer holding the element to parsecursor - the parser cursor containing the current position and
the bounds within the buffer for the parsing operationpublic NameValuePair[] parseParameters(CharSequence buffer, ParserCursor cursor)
HeaderValueParserParseException.parseParameters 在接口中 HeaderValueParserbuffer - buffer holding the name-value list to parsecursor - the parser cursor containing the current position and
the bounds within the buffer for the parsing operationpublic NameValuePair parseNameValuePair(CharSequence buffer, ParserCursor cursor)
HeaderValueParserparseNameValuePair 在接口中 HeaderValueParserbuffer - the buffer holding the name-value pair to parsecursor - the parser cursor containing the current position and
the bounds within the buffer for the parsing operationnull
if no value is specifiedCopyright © 2023. All rights reserved.