public class MultipartEntity
extends org.apache.http.entity.AbstractHttpEntity
implements java.lang.Cloneable
| Constructor and Description |
|---|
MultipartEntity() |
MultipartEntity(java.lang.String boundaryStr) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPart(Part part) |
java.lang.Object |
clone() |
java.lang.String |
getBoundary() |
java.io.InputStream |
getContent()
Returns
null since it's not designed to be used for server responses. |
long |
getContentLength() |
boolean |
isRepeatable() |
boolean |
isStreaming()
Tells that this entity is not streaming.
|
void |
writeTo(java.io.OutputStream out) |
public MultipartEntity(java.lang.String boundaryStr)
public MultipartEntity()
public void addPart(Part part)
public boolean isRepeatable()
isRepeatable in interface org.apache.http.HttpEntitypublic java.lang.String getBoundary()
public long getContentLength()
getContentLength in interface org.apache.http.HttpEntitypublic java.io.InputStream getContent()
throws java.io.IOException
null since it's not designed to be used for server responses.getContent in interface org.apache.http.HttpEntityjava.io.IOExceptionpublic void writeTo(java.io.OutputStream out)
throws java.io.IOException
writeTo in interface org.apache.http.HttpEntityjava.io.IOExceptionpublic boolean isStreaming()
isStreaming in interface org.apache.http.HttpEntityfalsepublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedException