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, shutdownmark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTopublic NonBlockingPumpInputStream()
public NonBlockingPumpInputStream(int bufferSize)
public OutputStream getOutputStream()
public int available()
available in class InputStreampublic int read(long timeout,
boolean isPeek)
throws IOException
read in class NonBlockingInputStreamIOExceptionpublic int readBuffered(byte[] b,
int off,
int len,
long timeout)
throws IOException
readBuffered in class NonBlockingInputStreamIOExceptionpublic void setIoException(IOException exception)
protected void checkIoException()
throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOException