加载中...
The Wayback Machine - https://sup1a9wrlpyh5li9ro.vcoronado.top/web/20090423020639/http://developer.android.com:80/reference/org/apache/http/entity/ByteArrayEntity.html
public class

ByteArrayEntity

extends AbstractHttpEntity
implements Cloneable
java.lang.Object
   ↳ org.apache.http.entity.AbstractHttpEntity
     ↳ org.apache.http.entity.ByteArrayEntity

Class Overview

An entity whose content is retrieved from a byte array.

Summary

Fields
protected final byte[] content
[Expand]
Inherited Fields
From class org.apache.http.entity.AbstractHttpEntity
Public Constructors
ByteArrayEntity(byte[] b)
Public Methods
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.
InputStream getContent()
long getContentLength()
boolean isRepeatable()
boolean isStreaming()
Tells that this entity is not streaming.
void writeTo(OutputStream outstream)
[Expand]
Inherited Methods
From class org.apache.http.entity.AbstractHttpEntity
From class java.lang.Object
From interface org.apache.http.HttpEntity

Fields

protected final byte[] content

Public Constructors

public ByteArrayEntity (byte[] b)

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.

public InputStream getContent ()

public long getContentLength ()

public boolean isRepeatable ()

public boolean isStreaming ()

Tells that this entity is not streaming.

Returns
  • false

public void writeTo (OutputStream outstream)

Throws
IOException