Package org.apache.http.client.fluent
Class InternalFileEntity
- java.lang.Object
-
- org.apache.http.entity.AbstractHttpEntity
-
- org.apache.http.client.fluent.InternalFileEntity
-
- All Implemented Interfaces:
java.lang.Cloneable
,org.apache.http.HttpEntity
class InternalFileEntity extends org.apache.http.entity.AbstractHttpEntity implements java.lang.Cloneable
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.File
file
-
Constructor Summary
Constructors Constructor Description InternalFileEntity(java.io.File file, org.apache.http.entity.ContentType contentType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.InputStream
getContent()
long
getContentLength()
boolean
isRepeatable()
boolean
isStreaming()
void
writeTo(java.io.OutputStream outStream)
-
-
-
Method Detail
-
isRepeatable
public boolean isRepeatable()
- Specified by:
isRepeatable
in interfaceorg.apache.http.HttpEntity
-
getContentLength
public long getContentLength()
- Specified by:
getContentLength
in interfaceorg.apache.http.HttpEntity
-
getContent
public java.io.InputStream getContent() throws java.io.IOException
- Specified by:
getContent
in interfaceorg.apache.http.HttpEntity
- Throws:
java.io.IOException
-
writeTo
public void writeTo(java.io.OutputStream outStream) throws java.io.IOException
- Specified by:
writeTo
in interfaceorg.apache.http.HttpEntity
- Throws:
java.io.IOException
-
isStreaming
public boolean isStreaming()
- Specified by:
isStreaming
in interfaceorg.apache.http.HttpEntity
-
-