public interface HttpResponseEntity
| Modifier and Type | Method and Description |
|---|---|
long |
contentLength()
Returns the length of the content or
-1 if the length is not known. |
java.io.InputStream |
contentStream()
Returns the content
InputStream of the entity. |
MediaType |
contentType()
Returns the
MediaType of the entity. |
MediaType contentType() throws java.io.IOException
MediaType of the entity.java.io.IOExceptionlong contentLength()
throws java.io.IOException
-1 if the length is not known.-1 .java.io.IOExceptionjava.io.InputStream contentStream()
throws java.io.IOException
InputStream of the entity. If you don't consume the entire content, make sure you always close the InputStream.InputStream, never null.java.io.IOException