org.apache.http.message.BufferedHeader
This class represents a raw HTTP header whose content is parsed 'on demand'
only when the header value needs to be consumed.
Summary
Public Constructors
Public Methods
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
Details
Public Constructors
Creates a new header from a buffer.
The name of the header will be parsed immediately,
the value only if it is accessed.
Parameters
buffer
| the buffer containing the header to represent |
Public Methods
public
Object
clone()
Returns a new instance of the same class as the receiver, whose slots
have been filled in with the values in the slots of the receiver.
Classes which wish to support cloning must specify that they implement
the Cloneable interface, since the implementation checks for this.
Returns
- Object a shallow copy of this object.
Obtains the buffer with the formatted header.
The returned buffer MUST NOT be modified.
public
int
getValuePos()
Obtains the start of the header value in the
buffer.
By accessing the value in the buffer, creation of a temporary string
can be avoided.
public
String
toString()
Returns a string containing a concise, human-readable description of the
receiver.
Returns
- String a printable representation for the receiver.