Android
org.apache.http.entity
public class

org.apache.http.entity.ByteArrayEntity

java.lang.Object
org.apache.http.entity.AbstractHttpEntity HttpEntity
org.apache.http.entity.ByteArrayEntity Cloneable

An entity whose content is retrieved from a byte array.

Summary

Fields

protected    final  byte[]  content   
Fields inherited 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)
Methods inherited from class org.apache.http.entity.AbstractHttpEntity
Methods inherited from class java.lang.Object
Methods inherited from interface org.apache.http.HttpEntity

Details

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
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:56