Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public interface

FormattedHeader

implements Header
org.apache.http.FormattedHeader
Known Indirect Subclasses

Class Overview

An HTTP header which is already formatted. For example when headers are received, the original formatting can be preserved. This allows for the header to be sent without another formatting step.

Summary

Public Methods
abstract CharArrayBuffer getBuffer ()
Obtains the buffer with the formatted header.
abstract int getValuePos ()
Obtains the start of the header value in the buffer .
[Expand]
Inherited Methods
From interface org.apache.http.Header

Public Methods

public abstract CharArrayBuffer getBuffer ()

Added in API level 1

Obtains the buffer with the formatted header. The returned buffer MUST NOT be modified.

Returns
  • the formatted header, in a buffer that must not be modified

public abstract int getValuePos ()

Added in API level 1

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.

Returns
  • index of the first character of the header value in the buffer returned by getBuffer .