@NotThreadSafe public class FileEntityHC4 extends AbstractHttpEntityHC4 implements java.lang.Cloneable
| Modifier and Type | Field and Description |
|---|---|
protected java.io.File |
file |
chunked, contentEncoding, contentType, OUTPUT_BUFFER_SIZE| Constructor and Description |
|---|
FileEntityHC4(java.io.File file) |
FileEntityHC4(java.io.File file,
ContentType contentType) |
FileEntityHC4(java.io.File file,
java.lang.String contentType)
Deprecated.
(4.1.3)
FileEntityHC4(File, ContentType) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone() |
java.io.InputStream |
getContent() |
long |
getContentLength() |
boolean |
isRepeatable() |
boolean |
isStreaming()
Tells that this entity is not streaming.
|
void |
writeTo(java.io.OutputStream outstream) |
consumeContent, getContentEncoding, getContentType, isChunked, setChunked, setContentEncoding, setContentEncoding, setContentType, setContentType@Deprecated
public FileEntityHC4(java.io.File file,
java.lang.String contentType)
FileEntityHC4(File, ContentType)public FileEntityHC4(java.io.File file,
ContentType contentType)
public FileEntityHC4(java.io.File file)
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.HttpEntityfalsepublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionCopyright © 1999-2015 The Apache Software Foundation. All rights reserved.