InputStream.
| Modifier and Type | Field and Description |
|---|---|
| private InputStream | |
| private long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public InputStream | Returns: the content, if this is the first call to this method sincesetContent has been calledImplements org. |
| public long | getContentLength()
Implements org. |
| public boolean | Returns: falseImplements org. |
| public boolean | isStreaming()
Implements org. |
| public void | setContent(final InputStream
the stream to return with the next call to
inStream)getContentSpecifies the content. |
| public void | setContentLength(final long
the number of bytes in the content, or
a negative number to indicate an unknown length len)Specifies the length of the content. |
| public void | writeTo(final OutputStream
the output stream to write entity content to outStream)Implements org. |
| content | back to summary |
|---|---|
| private InputStream content | |
| length | back to summary |
|---|---|
| private long length | |
| BasicHttpEntity | back to summary |
|---|---|
| public BasicHttpEntity() Creates a new basic entity. The content is initially missing, the content length is set to a negative number. | |
| getContent | back to summary |
|---|---|
| public InputStream getContent() throws IllegalStateException Implements org. Obtains the content, once only.
| |
| getContentLength | back to summary |
|---|---|
| public long getContentLength() Implements org. Doc from org. Tells the length of the content, if known.
| |
| isRepeatable | back to summary |
|---|---|
| public boolean isRepeatable() Implements org. Tells that this entity is not repeatable.
| |
| isStreaming | back to summary |
|---|---|
| public boolean isStreaming() Implements org. Doc from org. Tells whether this entity depends on an underlying stream.
Streamed entities that read data directly from the socket should
return
| |
| setContent | back to summary |
|---|---|
| public void setContent(final InputStream inStream) Specifies the content.
| |
| setContentLength | back to summary |
|---|---|
| public void setContentLength(final long len) Specifies the length of the content.
| |
| writeTo | back to summary |
|---|---|
| public void writeTo(final OutputStream outStream) throws IOException Implements org. Doc from org. Writes the entity content out to the output stream. Important Note Please note all entity implementations must ensure that all allocated resources are properly deallocated when this method returns.
| |