public class HttpInput extends Object implements CommunicationsInput
| Modifier and Type | Field and Description |
|---|---|
private ByteCountingInputStream |
countingIn |
private InterruptableInputStream |
interruptableIn |
| Constructor and Description |
|---|
HttpInput() |
| Modifier and Type | Method and Description |
|---|---|
void |
consume()
Reads all data currently on the socket and throws it away
|
long |
getBytesRead() |
InputStream |
getInputStream() |
void |
interrupt() |
void |
setInputStream(InputStream inputStream) |
private ByteCountingInputStream countingIn
private InterruptableInputStream interruptableIn
public InputStream getInputStream() throws IOException
getInputStream in interface CommunicationsInputIOExceptionpublic long getBytesRead()
getBytesRead in interface CommunicationsInputpublic void consume()
throws IOException
CommunicationsInputconsume in interface CommunicationsInputIOException - if unable to consumepublic void setInputStream(InputStream inputStream)
public void interrupt()
Copyright © 2023 Apache NiFi Project. All rights reserved.