Class CombinedEntity
- java.lang.Object
-
- org.apache.http.entity.AbstractHttpEntity
-
- org.apache.http.impl.client.cache.CombinedEntity
-
- All Implemented Interfaces:
org.apache.http.HttpEntity
class CombinedEntity extends org.apache.http.entity.AbstractHttpEntity
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
CombinedEntity.ResourceStream
-
Field Summary
Fields Modifier and Type Field Description private java.io.InputStream
combinedStream
private Resource
resource
-
Constructor Summary
Constructors Constructor Description CombinedEntity(Resource resource, java.io.InputStream inStream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
dispose()
java.io.InputStream
getContent()
long
getContentLength()
boolean
isRepeatable()
boolean
isStreaming()
void
writeTo(java.io.OutputStream outStream)
-
-
-
Field Detail
-
resource
private final Resource resource
-
combinedStream
private final java.io.InputStream combinedStream
-
-
Constructor Detail
-
CombinedEntity
CombinedEntity(Resource resource, java.io.InputStream inStream) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
getContentLength
public long getContentLength()
-
isRepeatable
public boolean isRepeatable()
-
isStreaming
public boolean isStreaming()
-
getContent
public java.io.InputStream getContent() throws java.io.IOException, java.lang.IllegalStateException
- Throws:
java.io.IOException
java.lang.IllegalStateException
-
writeTo
public void writeTo(java.io.OutputStream outStream) throws java.io.IOException
- Throws:
java.io.IOException
-
dispose
private void dispose()
-
-