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.HttpEntity
public long getContentLength()
getContentLength
in interface org.apache.http.HttpEntity
public java.io.InputStream getContent() throws java.io.IOException
getContent
in interface org.apache.http.HttpEntity
java.io.IOException
public void writeTo(java.io.OutputStream outstream) throws java.io.IOException
writeTo
in interface org.apache.http.HttpEntity
java.io.IOException
public boolean isStreaming()
isStreaming
in interface org.apache.http.HttpEntity