Package org.apache.nifi.remote.io.http
Class HttpInput
java.lang.Object
org.apache.nifi.remote.io.http.HttpInput
- All Implemented Interfaces:
CommunicationsInput
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ByteCountingInputStream
private InterruptableInputStream
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
consume()
Reads all data currently on the socket and throws it awaylong
void
void
setInputStream
(InputStream inputStream)
-
Field Details
-
countingIn
-
interruptableIn
-
-
Constructor Details
-
HttpInput
public HttpInput()
-
-
Method Details
-
getInputStream
- Specified by:
getInputStream
in interfaceCommunicationsInput
- Throws:
IOException
-
getBytesRead
public long getBytesRead()- Specified by:
getBytesRead
in interfaceCommunicationsInput
-
consume
Description copied from interface:CommunicationsInput
Reads all data currently on the socket and throws it away- Specified by:
consume
in interfaceCommunicationsInput
- Throws:
IOException
- if unable to consume
-
setInputStream
-
interrupt
public void interrupt()
-