public class SocketChannelInput extends Object implements CommunicationsInput
| Modifier and Type | Field and Description |
|---|---|
private InputStream |
bufferedIn |
private ByteCountingInputStream |
countingIn |
private InterruptableInputStream |
interruptableIn |
private SocketChannelInputStream |
socketIn |
| Constructor and Description |
|---|
SocketChannelInput(SocketChannel socketChannel) |
| Modifier and Type | Method and Description |
|---|---|
long |
getBytesRead() |
InputStream |
getInputStream() |
void |
interrupt() |
boolean |
isDataAvailable() |
void |
setTimeout(int millis) |
private final SocketChannelInputStream socketIn
private final ByteCountingInputStream countingIn
private final InputStream bufferedIn
private final InterruptableInputStream interruptableIn
public SocketChannelInput(SocketChannel socketChannel) throws IOException
IOExceptionpublic InputStream getInputStream() throws IOException
getInputStream in interface CommunicationsInputIOExceptionpublic void setTimeout(int millis)
public boolean isDataAvailable()
public long getBytesRead()
getBytesRead in interface CommunicationsInputpublic void interrupt()
Copyright © 2015 Apache NiFi (incubating). All rights reserved.