| Modifier and Type | Field and Description |
|---|---|
| private final CharArrayBuffer | buffer
The buffer containing the entire header line. |
| private final String | name
Header name. |
| private static final long | |
| private final int | valuePos
The beginning of the header value in the buffer |
| Access | Constructor and Description |
|---|---|
| public | BufferedHeader(final CharArrayBuffer
the buffer containing the header to represent buffer)Creates a new header from a buffer. |
| Modifier and Type | Method and Description |
|---|---|
| public Object | |
| public CharArrayBuffer | getBuffer()
Implements org. |
| public HeaderElement[] | |
| public String | |
| public String | |
| public int | getValuePos()
Implements org. buffer.
|
| public String |
| buffer | back to summary |
|---|---|
| private final CharArrayBuffer buffer The buffer containing the entire header line. | |
| name | back to summary |
|---|---|
| private final String name Header name. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| valuePos | back to summary |
|---|---|
| private final int valuePos The beginning of the header value in the buffer | |
| BufferedHeader | back to summary |
|---|---|
| public BufferedHeader(final CharArrayBuffer buffer) throws ParseException Creates a new header from a buffer. The name of the header will be parsed immediately, the value only if it is accessed.
| |
| clone | back to summary |
|---|---|
| public Object clone() throws CloneNotSupportedException Overrides java. Doc from java. Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object will be true, and that the expression:x.clone() != x will bex.clone().getClass() == x.getClass() true, but these are not absolute requirements.
While it is typically the case that:
will bex.clone().equals(x) true, this is not an absolute requirement.
By convention, the returned object should be obtained by calling
By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by
| |
| getBuffer | back to summary |
|---|---|
| public CharArrayBuffer getBuffer() Implements org. Doc from org. Obtains the buffer with the formatted header. The returned buffer MUST NOT be modified.
| |
| getElements | back to summary |
|---|---|
| public HeaderElement[] getElements() throws ParseException Implements org. Doc from org. Parses the value.
| |
| getName | back to summary |
|---|---|
| public String getName() Implements org. Doc from org. Gets the name of this pair. | |
| getValue | back to summary |
|---|---|
| public String getValue() Implements org. Doc from org. Gets the value of this pair. | |
| getValuePos | back to summary |
|---|---|
| public int getValuePos() Implements org. Doc from org. Obtains the start of the header value in the | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |