Search in sources :

Example 1 with InterruptableInputStream

use of org.apache.nifi.remote.io.InterruptableInputStream in project nifi by apache.

the class HttpInput method setInputStream.

public void setInputStream(InputStream inputStream) {
    interruptableIn = new InterruptableInputStream(inputStream);
    this.countingIn = new ByteCountingInputStream(interruptableIn);
}
Also used : InterruptableInputStream(org.apache.nifi.remote.io.InterruptableInputStream) ByteCountingInputStream(org.apache.nifi.stream.io.ByteCountingInputStream)

Aggregations

InterruptableInputStream (org.apache.nifi.remote.io.InterruptableInputStream)1 ByteCountingInputStream (org.apache.nifi.stream.io.ByteCountingInputStream)1