public class NonBlockingPumpInputStream extends NonBlockingInputStream
EOF, READ_EXPIRED
Constructor and Description |
---|
NonBlockingPumpInputStream() |
NonBlockingPumpInputStream(int bufferSize) |
Modifier and Type | Method and Description |
---|---|
int |
available() |
protected void |
checkIoException() |
void |
close() |
OutputStream |
getOutputStream() |
int |
read(long timeout,
boolean isPeek) |
int |
readBuffered(byte[] b,
int off,
int len,
long timeout) |
void |
setIoException(IOException exception) |
peek, read, read, read, readBuffered, readBuffered, shutdown
mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
public NonBlockingPumpInputStream()
public NonBlockingPumpInputStream(int bufferSize)
public OutputStream getOutputStream()
public int available()
available
in class InputStream
public int read(long timeout, boolean isPeek) throws IOException
read
in class NonBlockingInputStream
IOException
public int readBuffered(byte[] b, int off, int len, long timeout) throws IOException
readBuffered
in class NonBlockingInputStream
IOException
public void setIoException(IOException exception)
protected void checkIoException() throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException