public class

SerializableEntity

extends AbstractHttpEntity
java.lang.Object
   ↳ org.apache.http.entity.AbstractHttpEntity
     ↳ org.apache.http.entity.SerializableEntity

Class Overview

A streamed entity that obtains its content from a Serializable. The content obtained from the Serializable instance can optionally be buffered in a byte array in order to make the entity self-contained and repeatable.

Summary

[Expand]
Inherited Fields
From class org.apache.http.entity.AbstractHttpEntity
Public Constructors
SerializableEntity(Serializable ser, boolean bufferize)
Creates new instance of this class.
Public Methods
InputStream getContent()
long getContentLength()
boolean isRepeatable()
boolean isStreaming()
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

Public Constructors

public SerializableEntity (Serializable ser, boolean bufferize)

Creates new instance of this class.

Parameters
ser input
bufferize tells whether the content should be stored in an internal buffer
Throws
IOException in case of an I/O error

Public Methods

public InputStream getContent ()

public long getContentLength ()

public boolean isRepeatable ()

public boolean isStreaming ()

public void writeTo (OutputStream outstream)

Throws
IOException