public final class StreamEntityProducer extends Object implements org.apache.hc.core5.http.nio.AsyncEntityProducer
| Constructor and Description |
|---|
StreamEntityProducer(InputStream inputstream) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
failed(Exception e) |
String |
getContentEncoding() |
long |
getContentLength() |
String |
getContentType() |
Set<String> |
getTrailerNames() |
boolean |
isChunked() |
boolean |
isRepeatable() |
void |
produce(org.apache.hc.core5.http.nio.DataStreamChannel dataStreamChannel) |
void |
releaseResources() |
public StreamEntityProducer(InputStream inputstream)
public boolean isRepeatable()
isRepeatable in interface org.apache.hc.core5.http.nio.AsyncEntityProducerpublic void failed(Exception e)
failed in interface org.apache.hc.core5.http.nio.AsyncEntityProducerpublic long getContentLength()
getContentLength in interface org.apache.hc.core5.http.EntityDetailspublic String getContentType()
getContentType in interface org.apache.hc.core5.http.EntityDetailspublic String getContentEncoding()
getContentEncoding in interface org.apache.hc.core5.http.EntityDetailspublic boolean isChunked()
isChunked in interface org.apache.hc.core5.http.EntityDetailspublic Set<String> getTrailerNames()
getTrailerNames in interface org.apache.hc.core5.http.EntityDetailspublic int available()
available in interface org.apache.hc.core5.http.nio.AsyncDataProducerpublic void produce(org.apache.hc.core5.http.nio.DataStreamChannel dataStreamChannel)
throws IOException
produce in interface org.apache.hc.core5.http.nio.AsyncDataProducerIOExceptionpublic void releaseResources()
releaseResources in interface org.apache.hc.core5.http.nio.ResourceHolderCopyright © 2022. All rights reserved.