@Contract(threading=IMMUTABLE)
class CacheEntity
extends java.lang.Object
implements org.apache.http.HttpEntity, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
private HttpCacheEntry |
cacheEntry |
private static long |
serialVersionUID |
Constructor and Description |
---|
CacheEntity(HttpCacheEntry cacheEntry) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
void |
consumeContent() |
java.io.InputStream |
getContent() |
org.apache.http.Header |
getContentEncoding() |
long |
getContentLength() |
org.apache.http.Header |
getContentType() |
boolean |
isChunked() |
boolean |
isRepeatable() |
boolean |
isStreaming() |
void |
writeTo(java.io.OutputStream outstream) |
private static final long serialVersionUID
private final HttpCacheEntry cacheEntry
public CacheEntity(HttpCacheEntry cacheEntry)
public org.apache.http.Header getContentType()
getContentType
in interface org.apache.http.HttpEntity
public org.apache.http.Header getContentEncoding()
getContentEncoding
in interface org.apache.http.HttpEntity
public boolean isChunked()
isChunked
in interface org.apache.http.HttpEntity
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
public void consumeContent() throws java.io.IOException
consumeContent
in interface org.apache.http.HttpEntity
java.io.IOException
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException