Skip to content

Most visited

Recently visited

navigation

FormattedHeader | Android Developers

to top
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.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a one-minute survey?
Help us improve Android tools and documentation.