class InternalFileEntity
extends org.apache.http.entity.AbstractHttpEntity
implements java.lang.Cloneable
| Modifier and Type | Field and Description |
|---|---|
private java.io.File |
file |
| Constructor and Description |
|---|
InternalFileEntity(java.io.File file,
org.apache.http.entity.ContentType contentType) |
| Modifier and Type | Method and Description |
|---|---|
java.io.InputStream |
getContent() |
long |
getContentLength() |
boolean |
isRepeatable() |
boolean |
isStreaming() |
void |
writeTo(java.io.OutputStream outstream) |
public InternalFileEntity(java.io.File file,
org.apache.http.entity.ContentType contentType)
public boolean isRepeatable()
isRepeatable in interface org.apache.http.HttpEntitypublic long getContentLength()
getContentLength in interface org.apache.http.HttpEntitypublic java.io.InputStream getContent()
throws java.io.IOException
getContent in interface org.apache.http.HttpEntityjava.io.IOExceptionpublic void writeTo(java.io.OutputStream outstream)
throws java.io.IOException
writeTo in interface org.apache.http.HttpEntityjava.io.IOExceptionpublic boolean isStreaming()
isStreaming in interface org.apache.http.HttpEntity